[ANN] dateutil 0.9

G

Gustavo Niemeyer

https://moin.conectiva.com.br/DateUtil


Description
-----------

The dateutil module provides powerful extensions to
the standard datetime module, available in Python 2.3+.


Features
--------

- 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 database.

- Computing of Easter Sunday dates for any given year,
using Western, Orthodox or Julian algorithms;

- More than 400 test cases.


Version 0.9
-----------

- Implemented internal timezone information with binary
timezone files [1]. datautil.tz.gettz() function will now
try to use the system timezone files, and fallback to
the internal versions. It's also possible to ask for
the internal versions directly by using
dateutil.zoneinfo.gettz().

- New tzwin timezone type, allowing access to Windows
internal timezones (contributed by Jeffrey Harris).

- Fixed parsing of unicode date strings.

- Fixed pickling of timezone types, as reported by
Andreas Köhler.

- Accept parserinfo instances as the parser constructor
parameter, besides parserinfo (sub)classes.

- Changed weekday to spell the not-set n value as None
instead of 0.

- Fixed other reported bugs.

[1] http://www.twinsun.com/tz/tz-link.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top