MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getTime

Function getTime

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react-dom-charts/index.js:492–495  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

490};
491var getContinuousXValue = (xValue, xScale, timestampUnit) => xScale == LINEAR ? isNumber(xValue) ? xValue : void 0 : xScale == TIME ? normalizeTimeValue(xValue, timestampUnit) : void 0;
492var getTime = (value) => {
493 const time = +dateNew(value);
494 return isFiniteNumber(time) ? mathFloor(time) : void 0;
495};
496var getXValue = (cell) => isNumber(cell) ? isFiniteNumber(cell) ? cell : void 0 : isString(cell) ? cell : isTrue(cell) || isFalse(cell) ? cell : void 0;
497var getYValue = (cell) => isNumber(cell) && isFiniteNumber(cell) ? cell : void 0;
498var Bars = ({

Callers 1

normalizeTimeValueFunction · 0.70

Calls 1

dateNewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…