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

2017-01-20 Thread aberba via Digitalmars-d-learn
On Friday, 20 January 2017 at 03:48:14 UTC, rikki cattermole wrote: On 20/01/2017 9:29 AM, Rene Zwanenburg wrote: On Thursday, 19 January 2017 at 14:04:36 UTC, aberba wrote: Using the standard library, how do a get number of hours or seconds or minutes or days or months or years till current ti

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

2017-01-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, January 20, 2017 08:39:40 Rene Zwanenburg via Digitalmars-d-learn 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 implementatio

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

2017-01-20 Thread Andrea Fontana via Digitalmars-d-learn
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 documentat

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

2017-01-20 Thread Rene Zwanenburg via Digitalmars-d-learn
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. Th

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

2017-01-19 Thread rikki cattermole via Digitalmars-d-learn
On 20/01/2017 9:29 AM, Rene Zwanenburg wrote: On Thursday, 19 January 2017 at 14:04:36 UTC, aberba wrote: Using the standard library, how do a get number of hours or seconds or minutes or days or months or years till current time from a past timestamp (like "2 mins ago")? Not with manual calcula

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

2017-01-19 Thread Rene Zwanenburg via Digitalmars-d-learn
On Thursday, 19 January 2017 at 14:04:36 UTC, aberba wrote: Using the standard library, how do a get number of hours or seconds or minutes or days or months or years till current time from a past timestamp (like "2 mins ago")? Not with manual calculations but from Phobos functions. You can ge

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

2017-01-19 Thread aberba via Digitalmars-d-learn
Using the standard library, how do a get number of hours or seconds or minutes or days or months or years till current time from a past timestamp (like "2 mins ago")? Not with manual calculations but from Phobos functions.