time/py-isodate 0.7.2nb1 NetBSD
ISO 8601 date/time/duration parser and formatter
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- modified-bsd
- Categories
- time, python
- Package size
- 33.7 KiB, 177.6 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | time/py-isodate | 0.7.2nb1 |
| DragonFly | devel/py-isodate | 0.7.2 |
Install
Binary package:
pkgin install py311-isodate
From pkgsrc:
cd /usr/pkgsrc/time/py-isodate && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.7.2nb1 |
| NetBSD 10.1 aarch64 | 0.7.2nb1 |
| SmartOS / illumos x86_64 | 0.7.2nb1 |
| macOS 15 arm64 | 0.7.2nb1 |
Dependencies
Run dependencies 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-isodate-0.7.2nb1,py313-isodate-0.7.2nb1,py314-isodate-0.7.2nb1