Date formatting in D

aberba via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 7 12:29:07 PST 2017


I've been trying to figure out an inbuilt functionality in phobos 
for formatting date. In my use case, I've been trying to format 
current Unix timestamp to something like "Thu, 08 Mar 2017 
12:00:00 GMT".

How do I go by this easily (Currently, long concatenation of 
strings is what I'm thinking)?

I saw this thread[1] from 2011 on similar issue. Has it been 
resolved? What is the state of toCustomString?

[1] 
http://forum.dlang.org/post/mailman.673.1320367887.24802.digitalmars-d-learn@puremagic.com


More information about the Digitalmars-d-learn mailing list