Change cron between timezones
Gives a crontab expression, source and target timezones, return a new crontab expression that times change according to the given timezones.
Install
pip3 install crontzconvert
Usage
convert(cron_expression, source_timezone, target_timezone)
>> from crontzconvert import convert
>> convert('* 0/12 * * *', 'Asia/Shanghai', 'UTC') # UTC+8 to UTC
'* 16/12 * * *'
TODO
Change day and week when switch timezone
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crontzconvert-0.1.2.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crontzconvert-0.1.2.tar.gz.
File metadata
- Download URL: crontzconvert-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1e5872ab6cbf7aab04db636da3b9f98c61a82bc04f15543f096088579f4be70
|
|
| MD5 |
7adaf64fc6f99ff9dc944f74ec7610d3
|
|
| BLAKE2b-256 |
076ff98b27c9deb3a52d666acd5511b282609b95e09e8f1b0686525de3a680a2
|
File details
Details for the file crontzconvert-0.1.2-py3-none-any.whl.
File metadata
- Download URL: crontzconvert-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
576b783b20dced5e8d7511e6aca131973bdeedcbea8511723e7ca35ceee50a96
|
|
| MD5 |
153a61d40f61695d6b6e76b2c386b308
|
|
| BLAKE2b-256 |
841e0e8e1094a2541429539f7712ca7dfb23e6de99e771aa00b3581f99ba61c0
|