MCPcopy Index your code
hub / github.com/angular/angular / formatDateTime

Function formatDateTime

packages/common/src/i18n/format_date.ts:275–282  ·  view source on GitHub ↗
(str: string, opt_values: string[])

Source from the content-addressed store, hash-verified

273}
274
275function formatDateTime(str: string, opt_values: string[]) {
276 if (opt_values) {
277 str = str.replace(/\{([^}]+)}/g, function (match, key) {
278 return Object.hasOwn(opt_values, key) ? opt_values[key] : match;
279 });
280 }
281 return str;
282}
283
284function padNumber(
285 num: number,

Callers 1

getNamedFormatFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…