Difference Between Two datetimes
Stephen Hansen
apt.shansen at gmail.com
Wed Dec 30 00:58:41 EST 2009
On Tue, Dec 29, 2009 at 7:21 AM, M.-A. Lemburg <mal at egenix.com> wrote:
> If you want a more human readable, relative format use Age():
>
> >>> Age(bree, nat)
> <RelativeDateTime instance for '(+0008)-(+04)-(+29) HH:(+49):(+35)' at
> 0x2b99c6e37ef0>
>
> i.e. 8 years, 4 months, 29 days, 49 minutes, 35 seconds.
>
That is... awesome. I use mx.DateTime all the time, and never knew about the
Age capability.
mx.DateTime wins. I'm sort of curious why Python grew 'datetime' when
mx.DateTime was established already, and its such an excellent library.
--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091229/c1e0d157/attachment-0001.html>
More information about the Python-list
mailing list