std.date proposal

Georg Wrede georg.wrede at nospam.org
Sat Apr 1 05:06:01 PST 2006


Lucas Goss wrote:
> Fredrik Olsson wrote:
> 
>> You have used my own words against me well.
> 
> 
> lol...
> 
>> I am thinking of rewriting date.d to only allow for properly formatted 
>> dates, times and durations according to ISO8601. And then let 
>> dateparse.d, be an entity of it's own allowing for more "complex" 
>> parsing, and formatting.
>>
>> Is that a sound idea?
> 
> 
> That sounds much better to me. Any other ideas from anyone? I don't 
> claim to be an expert in library development... but I'm trying to get 
> better at it.

If you really want a date parser that can do amazing stuff, you might 
want to look at the *nix 'at' command. It parses dates in a wide variety 
of formats. Check the sources.

It's quite anglo-oriented, but with a little imagination one should be 
able to widen it to other nationalities too.



More information about the Digitalmars-d-announce mailing list