mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/RoboCommander.git
synced 2026-06-15 18:16:01 +00:00
Initial commit
This commit is contained in:
15
node_modules/d3-time/src/second.js
generated
vendored
Normal file
15
node_modules/d3-time/src/second.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import interval from "./interval";
|
||||
import {durationSecond} from "./duration";
|
||||
|
||||
var second = interval(function(date) {
|
||||
date.setTime(Math.floor(date / durationSecond) * durationSecond);
|
||||
}, function(date, step) {
|
||||
date.setTime(+date + step * durationSecond);
|
||||
}, function(start, end) {
|
||||
return (end - start) / durationSecond;
|
||||
}, function(date) {
|
||||
return date.getUTCSeconds();
|
||||
});
|
||||
|
||||
export default second;
|
||||
export var seconds = second.range;
|
||||
Reference in New Issue
Block a user