1 import std.datetime; 2 import core.time; 3 4 auto ds1 = giota(Date(2004, 1, 1), Date(2005, 1, 1), days(1)); 5 assert(ds1.walkLength() == 366); 6 7 8 auto ds2 = giotaInf(Date(2004, 1, 1), days(2)); 9 assert(ds2.front == Date(2004, 1, 1)); ds2.popFront(); 10 assert(ds2.front == Date(2004, 1, 3)); ds2.popFront(); 11 assert(ds2.front == Date(2004, 1, 5));
ditt