andrew-morris / parsedatetime

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

Allow adding custom named dates #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It should be possible to add custom named dates, so that the following code
would work:

c = pdc.Constants()
c.set_constant('Christmas', 'December 24')
p = pdt.Calendar(c)

p.parse('Christmas - 1 week')

Original issue reported on code.google.com by aigar...@gmail.com on 1 Feb 2010 at 10:43