ilyesdata / parsedatetime

Automatically exported from code.google.com/p/parsedatetime
Apache License 2.0
0 stars 0 forks source link

Invalid date returned for "flight from SFO at 4pm" #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If the text being parsed has a non-datetime item following a modifier,
"from" in the example, then the date generated will be invald.

Darshana found this during her Chandler Testing

Original issue reported on code.google.com by bear42 on 1 Sep 2006 at 7:03

GoogleCodeExporter commented 8 years ago
fixed by darshana in revision 15

Darshana added code to _evalModifier2() to recognize if the current chunk that 
may
have a modifier is not a valid datetime value and to use any datetime value 
that follows.

Original comment by bear42 on 1 Sep 2006 at 7:06

GoogleCodeExporter commented 8 years ago

Original comment by bear42 on 14 Feb 2007 at 7:12