std.dateparse reincarnation

Steve Teale steve.teale at britseyeview.com
Fri Oct 14 21:21:54 PDT 2011


On Thu, 13 Oct 2011 22:09:39 +0300, Vladimir Panteleev wrote:

> On Thu, 13 Oct 2011 07:22:06 +0300, Jesse Phillips
> <jessekphillips+d at gmail.com> wrote:
> 
>> Thought I would let everyone know that while std.dateparse is
>> deprecated and will be removed from Phobos in February, I've updated it
>> to output a std.datetime.SysTime.
>>
>> https://gist.github.com/1283011
>>
>> I don't have any interest in maintaining it, but since I did use it I
>> updated it for me.
> 
> Time formatting and parsing seems like a gap of missing functionality in
> Phobos 2.
> 
> I've written something to format and parse SysTimes using format strings
> based on the format PHP uses for its date() function:
> https://github.com/CyberShadow/ae/blob/master/utils/time.d
> 
> Feel free to use this file as public domain.

Yes, me too. I used to get tremendously frustrated with the old std.date, 
because all I wanted to do was get the current time and write it into a 
log file!

Steve


More information about the Digitalmars-d-announce mailing list