Greg Ewing <greg.ew...@canterbury.ac.nz>:

> ISO 8601 doesn't seem to define a representation for
> negative durations, though, so it wouldn't solve the
> original problem.

XSD uses ISO 8601 durations and allows a sign before the initial "P".

It would appear PT1M means 60 or 61 seconds. P1D means 23, 24 or 25
hours. P1M means 28..31 days etc. Timedelta would have no option but to
stick to seconds:

   P29389453.2345S

but then, why not simply use a number:

   29389453.2345


Marko
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to