std.range.iota enhancement: supporting more types (AKA issue 10762)

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sat Dec 28 06:09:09 PST 2013


On 28/12/13 14:58, Jakob Ovrum wrote:
> How would it fail? std.datetime does a good job with leap years AFAIK.

Try the attached code.  The largest value of DateTime(2012, 1, 1) + dur!"days"(5 
* n) that is less than DateTime(2013, 1, 1) is _not_ DateTime(2013, 1, 1) - 
dur!"days"(5). :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datetime.d
Type: text/x-dsrc
Size: 245 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131228/b871e10f/attachment.d>


More information about the Digitalmars-d mailing list