diff -r efd9c589177a -r c0b4a8b5a012 toolkit/javascript/d3/src/time/second.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/javascript/d3/src/time/second.js Thu Apr 10 14:20:23 2014 +0200 @@ -0,0 +1,5 @@ +d3.time.second = function(date) { + return new Date(~~(date / 1e3) * 1e3); +}; + +d3.time.second.utc = d3.time.second;