Sha256: fa9b97a110cd89af0d08f86821237969cf6030d836da46a96df39ca5d341e04b
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
import "interval"; import "time"; d3.time.second = d3_time_interval(function(date) { return new d3_time(Math.floor(date / 1e3) * 1e3); }, function(date, offset) { date.setTime(date.getTime() + Math.floor(offset) * 1e3); // DST breaks setSeconds }, function(date) { return date.getSeconds(); }); d3.time.seconds = d3.time.second.range; d3.time.seconds.utc = d3.time.second.utc.range;
Version data entries
4 entries across 4 versions & 2 rubygems