www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Add format future to Phobos date time

reply Suliman <evermind live.ru> writes:
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.
Nov 10 2016
parent reply Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
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
Nov 10 2016
parent reply Kagamin <spam here.lot> writes:
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'.
Nov 11 2016
parent Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
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.
Nov 11 2016