Package for converting string timestamps into datetimes.
Project description
dateparse
Dateparser for creating datetime objects from arbitrarily formated date strings. Primary support for Norwegian date formats.
New version is a complete refactor, with reduced complexity and functionality.
Install
pip install dateparse-tobiasli
Usage
import datetime
from dateparse import DateParser
parser = DateParser()
dt = parser.parse('5. januar 2015')
print(dt == [datetime.datetime(2015, 1, 5, 0, 0)])
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)])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dateparse-tobiasli-1.0.2.tar.gz.
File metadata
- Download URL: dateparse-tobiasli-1.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ba0762454f413db2c4aa50715c1a0a30e54363ce8eeb9766fb497225e9939a4
|
|
| MD5 |
f6d9e35c536ea792d1cb3581f1fc6f5a
|
|
| BLAKE2b-256 |
df72eae1ec453c4f8587a8d5b264c193f1495ed9cdb2ebb2109f2866c3c633e6
|