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

Method startOf

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

* Returns start of `unit` for the given `timestamp`. * @param timestamp - the input timestamp * @param unit - the unit as string * @param [weekday] - the ISO day of the week with 1 being Monday * and 7 being Sunday (only needed if param *unit* is `isoWeek`).

(this: DateAdapter<T>, timestamp: number, unit: TimeUnit | 'isoWeek', weekday?: number | boolean)

Source from the content-addressed store, hash-verified

54 * and 7 being Sunday (only needed if param *unit* is `isoWeek`).
55 */
56 startOf(this: DateAdapter<T>, timestamp: number, unit: TimeUnit | 'isoWeek', weekday?: number | boolean): number;
57 /**
58 * Returns end of `unit` for the given `timestamp`.
59 * @param timestamp - the input timestamp

Callers 5

parseFunction · 0.65
setMajorTicksFunction · 0.65
determineDataLimitsMethod · 0.65
_generateMethod · 0.65

Implementers 1

DateAdapterBasesrc/core/core.adapters.ts

Calls

no outgoing calls

Tested by

no test coverage detected