dateparse
Dateparser for creating datetime objects from arbitrarily formated date strings. Primary support for Norwegian date formats.
New version is a complete refactor:
- Much faster parsing.
- Reduced pattern complexity.
- Improved matching rutine.
- Some reduced functionality with less used time formats (centuries, relative dates, text based).
Install
pip install dateparse-tobiasli
Usage
import datetime
from dateparse import DateParser
parser = DateParser()
# Dates with alpha components:
dt = parser.parse('5. januar 2015')
print(dt == [datetime.datetime(2015, 1, 5, 0, 0)])
# Multiple dates from same string:
dt = parser.parse('1/12/2014 kl 12, 11.12.2015 kl 14')
print(dt == [datetime.datetime(2014, 12, 1, 12, 00), datetime.datetime(2015, 12, 11, 14, 00)])
Metadata
Release files for dateparse-tobiasli 1.1.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 | |
|---|---|---|---|---|
| dateparse-tobiasli-1.1.1.tar.gz | 3.9 kB | Without provenance | Details |
Release files / dateparse-tobiasli-1.1.1.tar.gz
| Download URL | dateparse-tobiasli-1.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c49ef4e162aba1825f9733d6dc893c40ef631fed76ed82164245d5699caf6c70
|
|
BLAKE2b-256 checksum How to use checksums |
e8a325afb48faf743215e88d59a802e375f1df0e32917e7fb406a5f90df3ba2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.5.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|
Security for dateparse-tobiasli 1.1.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.