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)
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

        Support the Python Software Foundation:
        http://www.python.org/psf/donations.html

Reply via email to