Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
14
node_modules/d3-time/src/second.js
generated
vendored
Normal file
14
node_modules/d3-time/src/second.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import {timeInterval} from "./interval.js";
|
||||
import {durationSecond} from "./duration.js";
|
||||
|
||||
export const second = timeInterval((date) => {
|
||||
date.setTime(date - date.getMilliseconds());
|
||||
}, (date, step) => {
|
||||
date.setTime(+date + step * durationSecond);
|
||||
}, (start, end) => {
|
||||
return (end - start) / durationSecond;
|
||||
}, (date) => {
|
||||
return date.getUTCSeconds();
|
||||
});
|
||||
|
||||
export const seconds = second.range;
|
||||
Loading…
Add table
Add a link
Reference in a new issue