std.dateparse reincarnation

Jesse Phillips jessekphillips+d at gmail.com
Thu Oct 13 21:51:58 PDT 2011


On Thu, 13 Oct 2011 12:13:40 -0700, Jonathan M Davis wrote:

> On Thursday, October 13, 2011 22:09:39 Vladimir Panteleev wrote:
>> Time formatting and parsing seems like a gap of missing functionality
>> in Phobos 2.
> 
> It formats and parses specific, official formats just fine, but it
> doesn't currently support user-defined formats. It's on my TODO list.
> Eventually, there will be something along the lines of toCustomString
> and fromCustomString on Date, TimeOfDay, DateTime, and SysTime, where
> they take a format string defining the custom format.
> 
> - Jonathan M Davis

For my use dateparse was actually want I wanted. I was pulling out 
strings saying, "Hey this looks like it might be a date, what do you 
think?" "Yeah, cool thank you." I don't wish to try and push it back into 
Phobos but thought others may well still be interested as I was.


More information about the Digitalmars-d-announce mailing list