Pick date by conditions and list of re-like wildcards
Project description
Welcome to date_pick ⛏️
Description
Pick date by conditions and list of re-like wildcards
Quickstart
>>> from date_pick import DatePick
>>> import datetime
>>>
>>> datetime.datetime.now()
datetime.datetime(2021, 11, 22, 15, 53, 20, 357911)
>>>
>>> picker = DatePicker()
>>> # pick the nearest Monday 4 AM
>>> picker.pick(["*-*-*-0 04:00:00"])
"2021-11-29 04:00:00"
Authors
- Nick Kuzmenkov
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
date_pick-0.1.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file date_pick-0.1.1.tar.gz
.
File metadata
- Download URL: date_pick-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8290814927ecb61ea05bb5117e7d8852d3a0ed292369fd0bbe550793f81d94f3 |
|
MD5 | ee94ef4d11fb8b2f4f5f13cd906bc714 |
|
BLAKE2b-256 | 970d8b75007df40cfa679a92db2415a0c5c781a22467b4b82449e4284295b272 |
File details
Details for the file date_pick-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: date_pick-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 116c924f46178c6ce81530c81e60e749fb62922fe6fef8ec0ed96b74ee2e615c |
|
MD5 | bf8e067c47955d4350be71e3082bee74 |
|
BLAKE2b-256 | 089891233b6697ef53a2d3fe7b5708418e1c49cc5585e41b42205263b57d70e9 |