MCPcopy Create free account
hub / github.com/chartjs/Chart.js / format

Method format

src/core/core.adapters.ts:34–34  ·  view source on GitHub ↗

* Returns the formatted date in the specified `format` for a given `timestamp`. * @param timestamp - the timestamp to format * @param format - the date/time token

(this: DateAdapter<T>, timestamp: number, format: string)

Source from the content-addressed store, hash-verified

32 * @param format - the date/time token
33 */
34 format(this: DateAdapter<T>, timestamp: number, format: string): string;
35 /**
36 * Adds the specified `amount` of `unit` to the given `timestamp`.
37 * @param timestamp - the input timestamp

Callers

nothing calls this directly

Implementers 1

DateAdapterBasesrc/core/core.adapters.ts

Calls

no outgoing calls

Tested by

no test coverage detected