Announce : TimeDuration 0.1a released

Andrew Lee fiacre.patrick at gmail.com
Fri Apr 18 09:06:10 CEST 2008


This is a pure python module for parsing time interval strings,
normalizing, comparing and ordering time intervals.

This module is still in alpha phase.

It handles string like :

"1 hour, 15 minutes and 23.2 seconds"
"01:15:23.2"
"1h 15min 23.2sec"

Output from *nix uptime or time commands :

"15 days, 23:04"
"0m2.496s"

It handles comparisons and sorting of TimeDuration objects.

It normalizes time interval strings, e.g. :

"5 d, 27 h, 75 m 120 s"

will normalize to

"6 D 04:17:0.00"

TODO:

* Catch garbled input strings that might confuse the parser.
* Create an iterable class to handle slices, min, max, sums, average,
mean and stddev
* More testing



Homepage:

http://statz.com/libs-TimeDuration/


Author :

Andrew Lee (fiacre.patrick  - at - gmail.com)


More information about the Python-announce-list mailing list