README
This project contains a library which converts an ISO date/time string into a range.
Usage
The module contains one function - get_date_range - which converts a given ISO
date/time string into a range and returns this range as a list. It is used as
follows:
import isodaterange
range = isodaterange.get_date_range("2019-07")
# returns [datetime.datetime(2019, 7, 1, 0, 0, 0), datetime.datetime(2019, 7, 31, 23, 59, 59)]
range = isodaterange.get_date_range("2019-04-01/2019-06-23")
# returns [datetime.datetime(2019, 4, 1, 0, 0, 0), datetime.datetime(2019, 6, 23, 23, 59, 59)]
range = isodaterange.get_date_range("P1Y")
# returns [now, date one year from now]
Testing
There is a tests module which contains unit tests. This can be run as follows:
python3 -m unittest isodaterange.tests
License
(c) UK Research and Innovation (UKRI), 2019 - 2020, British Antarctic Survey. You may use and re-use this software and associated documentation files free of charge in any format or medium, under the terms of the Open Government Licence v3.0. You may obtain a copy of the Open Government Licence at http://www.nationalarchives.gov.uk/doc/open-government-licence/
Metadata
Release files for isodaterange 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| isodaterange-1.0.1.tar.gz | 3.3 kB | Without provenance | Details for isodaterange-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| isodaterange-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for isodaterange-1.0.1-py3-none-any.whl |
Total release size: 7.4 kB
Release files / isodaterange-1.0.1.tar.gz
| Download URL | isodaterange-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9f6d85959e028af458578014fa44ff027c4434365683340f12ccab353535d53
|
|
BLAKE2b-256 checksum How to use checksums |
94ab5e1f91a39e957e8207185fdb8425a56e8efa146fa90a1b0e042295509642
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Release files / isodaterange-1.0.1-py3-none-any.whl
| Download URL | isodaterange-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5d6a8b9448f65dc3ede89160f1496e69a27b66236c9513dfec1dddd95d34eef
|
|
BLAKE2b-256 checksum How to use checksums |
7ec7d597e98574157f612f4c0b4a6019c4a71bcaa90befd0643c3a5d7953fb65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Security for isodaterange 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.