Hi,
I used it for various forms of dates. What is the question?
Cheers,
Doru
On 14 Mar 2012, at 16:24, Friedrich Dominicus wrote:
I wonder if anyone has used PetitParser to parse dates in diverse
formats.
e.g
01/01/2012
07/31/2012
And with failures on things like
2012-07-32 or
Tudor Girba tu...@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
how did you handle things like
1/1/11 (or didn't you?)
or worse
1/1/1 - 01.01.2001?
This is not related to parsing but to the interpretation of the data :)
There is no magic no?
BTW this is the birthday of one of my sons :)
how have you treated dates like
1/12/2012 - 12.01.2012 or
2012/3/16 Stéphane Ducasse stephane.duca...@inria.fr
how did you handle things like
1/1/11 (or didn't you?)
or worse
1/1/1 - 01.01.2001?
This is not related to parsing but to the interpretation of the data :)
I agree with Stef, your seems to be more an interpretation problem. If you
I wonder if anyone has used PetitParser to parse dates in diverse
formats.
e.g
01/01/2012
07/31/2012
And with failures on things like
2012-07-32 or
2012-13-01 or
2012-02-30 or
2011-02-29
Regards
Friedrich
--
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim