osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Negative timedelta strings


On Fri, Mar 28, 2014 at 12:19 PM, Skip Montanaro <skip at pobox.com> wrote:

> (*) As an aside (that is, this belongs in a separate thread if you
> want to discuss it), in my opinion, attempting to support ISO 8601
> formatting is pointless without the presence of an anchor datetime.
>

I meant ISO 8601 syntax for "durations" [1].

"""
For example, "P3Y6M4DT12H30M5S" represents a duration of "three years, six
months, four days, twelve hours, thirty minutes, and five seconds".
"""

And if you have to ask - no I don't want to see this anywhere near Python
stdlib. :-)


[1] http://en.wikipedia.org/wiki/ISO_8601#Durations
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140328/cd7c54bf/attachment.html>