MCPcopy
hub / github.com/chartjs/Chart.js / diff

Method diff

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

* Returns the number of `unit` between the given timestamps. * @param a - the input timestamp (reference) * @param b - the timestamp to subtract * @param unit - the unit as string

(this: DateAdapter<T>, a: number, b: number, unit: TimeUnit)

Source from the content-addressed store, hash-verified

46 * @param unit - the unit as string
47 */
48 diff(this: DateAdapter<T>, a: number, b: number, unit: TimeUnit): number;
49 /**
50 * Returns start of `unit` for the given `timestamp`.
51 * @param timestamp - the input timestamp

Callers 3

_generateMethod · 0.65

Implementers 1

DateAdapterBasesrc/core/core.adapters.ts

Calls

no outgoing calls

Tested by

no test coverage detected