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

Function newDateFromRef

test/fixtures/scale.time/data-ty.js:1–3  ·  view source on GitHub ↗
(days)

Source from the content-addressed store, hash-verified

1function newDateFromRef(days) {
2 return moment('01/01/2015 12:00', 'DD/MM/YYYY HH:mm').add(days, 'd').toDate();
3}
4
5module.exports = {
6 threshold: 0.01,

Callers 1

data-ty.jsFile · 0.70

Calls 1

addMethod · 0.65

Tested by

no test coverage detected