std.datetime: easy way to parse 24/Jun/2020?

Walter Bright newshound2 at digitalmars.com
Mon Jun 29 04:42:37 UTC 2020


On 6/28/2020 5:42 PM, Andrei Alexandrescu wrote:
> The day and year obviously are easy, is there a way to easily parse the month 
> from English into number? Thanks!

The old D1 std.datetime does it using compiler lexing techniques:

https://github.com/dlang/undeaD/blob/master/src/undead/dateparse.d


More information about the Digitalmars-d mailing list