Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 11, 2016 Add format future to Phobos date time | ||||
---|---|---|---|---|
| ||||
Date formating is very common operation. Is it's possible to add this future to Phobos datetime module? There is already external lib https://github.com/cmays90/datetimeformat but I think that is's much better to have in base lib. |
November 11, 2016 Re: Add format future to Phobos date time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On Friday, 11 November 2016 at 05:56:20 UTC, Suliman wrote: > There is already external lib https://github.com/cmays90/datetimeformat BTW, ae.utils.time supports parsing and formatting, with the format string being parse-able both at runtime and compile-time (generating parsing/formatting code for that exact time string). https://github.com/CyberShadow/ae/tree/master/utils/time |
November 11, 2016 Re: Add format future to Phobos date time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On Friday, 11 November 2016 at 06:01:49 UTC, Vladimir Panteleev wrote: > https://github.com/CyberShadow/ae/tree/master/utils/time BTW what 'C' format specifier means? https://github.com/CyberShadow/ae/blob/master/utils/time/format.d#L65 I noticed dfeed uses it too and formatted time stings end with this mysterious 'C'. |
November 11, 2016 Re: Add format future to Phobos date time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Friday, 11 November 2016 at 08:50:02 UTC, Kagamin wrote:
> On Friday, 11 November 2016 at 06:01:49 UTC, Vladimir Panteleev wrote:
>> https://github.com/CyberShadow/ae/tree/master/utils/time
>
> BTW what 'C' format specifier means? https://github.com/CyberShadow/ae/blob/master/utils/time/format.d#L65 I noticed dfeed uses it too and formatted time stings end with this mysterious 'C'.
Wow, that's a typo (introduced during a refactoring). I don't know how I never noticed that. Fixed now, well spotted.
|
Copyright © 1999-2021 by the D Language Foundation