MCPcopy Index your code
hub / github.com/csev/py4e / round

Function round

code/pagerank/d3.v2.js:9002–9005  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

9000function d3_time_interval(local, step, number) {
9001
9002 function round(date) {
9003 var d0 = local(date), d1 = offset(d0, 1);
9004 return date - d0 < d1 - date ? d0 : d1;
9005 }
9006
9007 function ceil(date) {
9008 step(date = local(new d3_time(date - 1)), 1);

Callers 1

positionFunction · 0.70

Calls 1

offsetFunction · 0.70

Tested by

no test coverage detected