std.datetime TimeOfDay missing 'add' method?

2012-09-20 Thread ixid
TimeOfDay's roll function refers to an add method which would increment or decrement the next greater unit of time when it wraps a unit of time. This method seems to be absent, while DateTime has it.

Re: std.datetime TimeOfDay missing 'add' method?

2012-09-20 Thread ixid
Actually I see DateTime's method is days and months only, why aren't hours, minutes and seconds available?

Re: std.datetime TimeOfDay missing 'add' method?

2012-09-20 Thread Ali Çehreli
On 09/20/2012 09:02 AM, ixid wrote: > TimeOfDay's roll function refers to an add method I see how "The difference between rolling and adding ..." implies that there is also an add() function just like there is a roll() function. In fact, adding is handled simply by operator overloading. You can

Re: std.datetime TimeOfDay missing 'add' method?

2012-09-20 Thread Jonathan M Davis
On Thursday, September 20, 2012 18:02:04 ixid wrote: > TimeOfDay's roll function refers to an add method which would > increment or decrement the next greater unit of time when it > wraps a unit of time. This method seems to be absent, while > DateTime has it. Create a Duration and use +. e.g. au