first commit
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user