[Tutor] python date::manip like module?

Magnus Lyckå magnus@thinkware.se
Sat Jun 14 18:48:01 2003


At 08:56 2003-06-14 -0500, Decibels wrote:
>Does any one know if there is a module like perl Date::Manip
>so you can enter information like:
>
>today
>1st thursday in June 1992
>05/10/93
>12:30 Dec 12th 1880
>8:00pm december tenth
>yesterday
>,........

I don't know of anything quite as elaborate as that.
The mx.DateTime module at www.egenix.com is quite powerful,
but I don't think it will parse all those strings.

For Python 2.3, there is a new datetime module, but I
don't think it will do things like that.

If I remember correctly, the bug tracking program "roundup"
http://roundup.sourceforge.net/ has a fairly elaborate
date parser. See
http://roundup.sourceforge.net/doc-0.6/user_guide.html#date-properties

See also http://py.vaults.ca/apyllo.py?find=date

I wouldn't mind seeing something like that written on top of
datetime.


--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The Agile Programming Language