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

Function formatFractionalSeconds

packages/common/src/i18n/format_date.ts:310–313  ·  view source on GitHub ↗
(milliseconds: number, digits: number)

Source from the content-addressed store, hash-verified

308}
309
310function formatFractionalSeconds(milliseconds: number, digits: number): string {
311 const strMs = padNumber(milliseconds, 3);
312 return strMs.substring(0, digits);
313}
314
315/**
316 * Returns a date formatter that transforms a date into its locale digit representation

Callers 1

dateGetterFunction · 0.85

Calls 1

padNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…