What I'm looking for is something that can translate 'tomorrow at 6am' or 'next moday at noon' to the appropriate datetime objects.
views:
298answers:
2
+7
A:
parsedatetime - Python module that is able to parse 'human readable' date/time expressions.
Alex Barrett
2009-09-30 00:06:17
+1
A:
See what you think of this example from the pyparsing wiki. It handles the following test cases:
today
tomorrow
yesterday
in a couple of days
a couple of days from now
a couple of days from today
in a day
3 days ago
3 days from now
a day ago
now
10 minutes ago
10 minutes from now
in 10 minutes
in a minute
in a couple of minutes
20 seconds ago
in 30 seconds
20 seconds before noon
20 seconds before noon tomorrow
noon
midnight
noon tomorrow
6am tomorrow
0800 yesterday
12:15 AM today
3pm 2 days from today
a week from today
a week from now
3 weeks ago
noon next Sunday
noon Sunday
noon last Sunday
Paul McGuire
2009-09-30 03:48:08