[Pharo-project] Does anyone have tried/succeeded to use PetitParser for parsing dates?

Friedrich Dominicus frido at q-software-solutions.de
Fri Mar 16 06:47:30 EDT 2012


Tudor Girba <tudor at tudorgirba.com> writes:

> Hi,
>
> I used it for various forms of dates. What is the question?
E.g handling of optional leading zeroes

how did you handle things like
1/1/11 (or didn't you?)
or worse
1/1/1  -> 01.01.2001?

how have you treated dates like
1/12/2012 -> 12.01.2012 or 1.12.2012?

or even more "problematic"
12/12/2012 

and the like there are so many way to parse the dates....

Regards
Friedrich

-- 
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim 
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus




More information about the Pharo-dev mailing list