Flexible English phrase for Python?

I am looking for a function that can convert an English date phrase into some Python date object representing the corresponding date.

An example of what I'm looking for (although I'm flexible):

  • After three days
  • yesterday
  • In a month
  • Next year
  • January 18, 2011
  • Next Wednesday

Is there such a thing? Is this possible in another language?

0
source share
2 answers

parsedatetime, always classic: http://code.google.com/p/parsedatetime/

+1
source

I think the best choice here would be mxDateTime . The documentation seems to suggest that it does what you are looking for.

0
source

All Articles