A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-March/133691.html below:

[Python-Dev] Negative timedelta strings

[Python-Dev] Negative timedelta strings [Python-Dev] Negative timedelta stringsMarko Rauhamaa marko at pacujo.net
Fri Mar 28 22:57:02 CET 2014
Greg Ewing <greg.ewing at 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4