./time/py-isodate, ISO 8601 date/time/duration parser and formatter

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.7.2, Package name: py312-isodate-0.7.2, Maintainer: kamelderouiche

This module implements ISO 8601 date, time and duration parsing. The
implementation follows ISO8601:2004 standard, and implements only date/time
representations mentioned in the standard. If something is not mentioned there,
then it is treated as non existent, and not as an allowed option.

For instance, ISO8601:2004 never mentions 2 digit years. So, it is not intended
by this module to support 2 digit years. (while it may still be valid as ISO
date, because it is not explicitly forbidden.) Another example is, when no time
zone information is given for a time, then it should be interpreted as local
time, and not UTC.

As this module maps ISO 8601 dates/times to standard Python data types, like
date, time, datetime and timedelta, it is not possible to convert all possible
ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by
the Python date and datetime classes. Additionally fractional seconds are
limited to microseconds. That means if the parser finds for instance nanoseconds
it will round it to microseconds.


Required to run:
[lang/py-six] [lang/python310]

Master sites:

Filesize: 29.009 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 11:58:31 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-isodate: updated to 0.7.2

0.7.2 (2024-10-08)

- drop end of life python versions
- Don't match garbage characters at the end of parsed strings

Potentially breaking changes:

- Fractional seconds are cut off to microseconds (always round down)
- Allow control over return type of parse_duration
- Python >= 3.7 required
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-12-14 08:12:49 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-isodate: updated to 0.6.1

0.6.1 (2021-12-13)
------------------
- support python 3.10 ()
- last version to support py 2.7
   2021-10-26 13:24:47 by Nia Alarie | Files touched by this commit (263)
Log message:
time: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 17:04:23 by Nia Alarie | Files touched by this commit (263)
Log message:
time: Remove SHA1 hashes for distfiles
   2017-10-16 08:44:28 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-isodate: update to 0.6.0

0.6.0:
- support incomplete month date
- rely on duck typing when doing duration maths
- support ':' as separator in fractional time zones
   2017-07-07 10:51:16 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
0.5.4:
Fix parsing of Periods
Make Duration objects hashable
Add multiplication to duration