Adding days to std.datetime.Date

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 2 11:00:11 PST 2014


On Tue, Dec 02, 2014 at 06:49:54PM +0000, via Digitalmars-d-learn wrote:
> >But still, why this method
> >http://dlang.org/phobos/std_datetime.html#.Date.add only supports "month"
> >or "years" while this one
> >http://dlang.org/phobos/std_datetime.html#.Date.roll does ?
> 
> But still, why this method
> http://dlang.org/phobos/std_datetime.html#.Date.add only supports
> "month" or "years" while this one
> http://dlang.org/phobos/std_datetime.html#.Date.roll does support days
> ?*

Hmm. Looks like an oversight. File a bug?


T

-- 
"Computer Science is no more about computers than astronomy is about telescopes." -- E.W. Dijkstra


More information about the Digitalmars-d-learn mailing list