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

Method add

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

* Adds the specified `amount` of `unit` to the given `timestamp`. * @param timestamp - the input timestamp * @param amount - the amount to add * @param unit - the unit as string

(this: DateAdapter<T>, timestamp: number, amount: number, unit: TimeUnit)

Source from the content-addressed store, hash-verified

39 * @param unit - the unit as string
40 */
41 add(this: DateAdapter<T>, timestamp: number, amount: number, unit: TimeUnit): number;
42 /**
43 * Returns the number of `unit` between the given timestamps.
44 * @param a - the input timestamp (reference)

Callers 5

registerMethod · 0.65
updateMethod · 0.65
cachedKeysFunction · 0.65
addIfFoundFunction · 0.65
getOptionScopesMethod · 0.65

Implementers 1

DateAdapterBasesrc/core/core.adapters.ts

Calls

no outgoing calls

Tested by

no test coverage detected