Phobos: Determining number of hours or minutes or seconds till now

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 20 00:52:57 PST 2017


On Friday, 20 January 2017 at 08:39:40 UTC, Rene Zwanenburg wrote:
> On Friday, 20 January 2017 at 03:48:14 UTC, rikki cattermole 
> wrote:
>> As per the documentation this is wrong for anything beyond a 
>> few weeks.
>> Although I have no idea if that's the case implementation wise.
>
> I think the documentation is talking about the units used, not 
> length of the duration. The reason Duration makes this 
> distinction is because months and everything larger have a 
> variable length. I'm not sure though.

Yes it is referred to unit!


More information about the Digitalmars-d-learn mailing list