ilyesdata / parsedatetime

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

Enhancement request: date ranges #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is a request to have parsedatetime handle date ranges such as:

August 1-15, 2006
Oct-Nov, 2006
in 2-3 weeks

This is would be useful in the context of parsing announcements for events,
conferences, etc. 

The simplest would be to return a tuple of dates delimiting the start and
end of the range.

Original issue reported on code.google.com by felci...@gmail.com on 8 Sep 2006 at 7:07

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for the request!

Darshana has implemented something like this (the parsing of "-" for date 
ranges) so
I'll have to look to see if the current code handles your examples.

Original comment by bear42 on 11 Sep 2006 at 5:28

GoogleCodeExporter commented 8 years ago

Original comment by bear42 on 11 Sep 2006 at 6:45

GoogleCodeExporter commented 8 years ago
All the 3 ranges requested above are not handled currently.

The examples of ranges that are handled though are: 

06/07/06 - 08/09/06
march 31 - june 1st, 2006
march 1rd - 13th
4:00:55 pm - 5:90:44 am
4-5pm

Original comment by darshana...@gmail.com on 12 Oct 2006 at 9:27