A library computing next occurrence of a cron pattern
Project description
cronwhen
Python package to compute next execution date of a cron expression.
# Simple example:
import datetime
from cronwhen import cronwhen
base_point = datetime.datetime(2019,10,3,12,49)
expression = cronwhen.CronExpression('59 10-20/3 1,2,6 * *')
expression.get_next_occurrence(base_point)
# --> datetime.datetime(2019,10,6,10,59)
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
cronwhen-0.2.tar.gz
(8.4 kB
view details)
File details
Details for the file cronwhen-0.2.tar.gz.
File metadata
- Download URL: cronwhen-0.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a98d1dfa1b5a1d6acae9ae182c050ee6bb6926eda266b416b9fc8d4b3cea85bb
|
|
| MD5 |
cbd4492a51b2a91a172bc219948c25ed
|
|
| BLAKE2b-256 |
85a65919bfc84b1ee9b4fb079afc28481f3e637ec6122a7095b48079a4ce418a
|