MCPcopy
hub / github.com/csev/py4e / range

Function range

code/pagerank/d3.v2.js:9017–9028  ·  view source on GitHub ↗
(t0, t1, dt)

Source from the content-addressed store, hash-verified

9015 }
9016
9017 function range(t0, t1, dt) {
9018 var time = ceil(t0), times = [];
9019 if (dt > 1) {
9020 while (time < t1) {
9021 if (!(number(time) % dt)) times.push(new Date(+time));
9022 step(time, 1);
9023 }
9024 } else {
9025 while (time < t1) times.push(new Date(+time)), step(time, 1);
9026 }
9027 return times;
9028 }
9029
9030 function range_utc(t0, t1, dt) {
9031 try {

Callers 8

range_utcFunction · 0.70
sprank.pyFile · 0.70
__setitem__Method · 0.70
__eq__Method · 0.70
_popToTagMethod · 0.70
_smartPopMethod · 0.70
start_metaMethod · 0.70
_ebcdic_to_asciiMethod · 0.70

Calls 2

ceilFunction · 0.70
stepFunction · 0.50

Tested by

no test coverage detected