[Tutor] A couple of modules

Ricardo Aráoz ricaraoz at gmail.com
Mon Dec 10 03:10:10 CET 2007

Hi, somebody did ask about dates. Found this package, might be usefull
The dateutil module provides powerful extensions to the standard
datetime module, available in Python 2.3+.


    * Computing of relative deltas (next month, next year, next monday,
last week of month, etc);
    * Computing of relative deltas between two given date and/or
datetime objects;
    * Computing of dates based on very flexible recurrence rules, using
a superset of the

      iCalendar specification. Parsing of RFC strings is supported as well.
    * Generic parsing of dates in almost any string format;
    * Timezone (tzinfo) implementations for tzfile(5) format files
(/etc/localtime, /usr/share/zoneinfo, etc), TZ environment string (in
all known formats), iCalendar format files, given ranges (with help from
relative deltas), local machine timezone, fixed offset timezone, UTC
timezone, and Windows registry-based time zones.
    * Internal up-to-date world timezone information based on Olson's
    * Computing of Easter Sunday dates for any given year, using
Western, Orthodox or Julian algorithms;
    * More than 400 test cases.

Somebody was also asking about taking accents out of a string. Check
this out : http://packages.debian.org/sid/python/python-unac
Unac is a programmer's library that removes accents from a string.

This package contains Python bindings for the original C library.
and also :
python-unac -- code is of poor quality and can be done as easily in
native Python



More information about the Tutor mailing list