MCPcopy Index your code
hub / github.com/github/relative-time-element / toLocaleString

Method toLocaleString

src/duration.ts:82–84  ·  view source on GitHub ↗
(locale: string, opts: DurationFormatOptions)

Source from the content-addressed store, hash-verified

80 }
81
82 toLocaleString(locale: string, opts: DurationFormatOptions) {
83 return new DurationFormat(locale, opts).format(this)
84 }
85}
86
87export function applyDuration(date: Date | number, duration: Duration): Date {

Callers 1

#getDurationFormatMethod · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected