Simple module to parse ISO 8601 dates
This module parses the most common forms of ISO 8601 date strings (e.g. 2007-01-14T20:34:22+00:00) into datetime objects.
>>> import iso8601
>>> iso8601.parse_date("2007-01-25T12:00:00Z")
datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>)
>>>
Changes
0.1.6
Removed Apache 2.0 license, now MIT license, same as original
0.1.5
Forked original version by Michael Twomey located http://code.google.com/p/pyiso8601/
Added the ability to parse date without any time information.
Apache 2.0 license
0.1.4
The default_timezone argument wasn’t being passed through correctly, UTC was being used in every case. Fixes issue 10.
0.1.3
Fixed the microsecond handling, the generated microsecond values were way too small. Fixes issue 9.
0.1.2
Adding ParseError to __all__ in iso8601 module, allows people to import it. Addresses issue 7.
Be a little more flexible when dealing with dates without leading zeroes. This violates the spec a little, but handles more dates as seen in the field. Addresses issue 6.
Allow date/time separators other than T.
0.1.1
When parsing dates without a timezone the specified default is used. If no default is specified then UTC is used. Addresses issue 4.
Metadata
Release files for iso8601plus 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iso8601plus-0.1.6.tar.gz | 4.7 kB | Details |
Release files / iso8601plus-0.1.6.tar.gz
| Download URL | iso8601plus-0.1.6.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4765d0b8bccca561b6dab3f64dd64f8a17e4ade6d25fc49b8ea9870825f5837
|
|
BLAKE2b-256 checksum How to use checksums |
c316a9bf08bcc6b49ee25e0f863bf8f35e1126a6d72af4d8696669e6765636c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |