Change crontab between two timezones.
Project description
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
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
crontzconvert-0.1.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for crontzconvert-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 576b783b20dced5e8d7511e6aca131973bdeedcbea8511723e7ca35ceee50a96 |
|
MD5 | 153a61d40f61695d6b6e76b2c386b308 |
|
BLAKE2b-256 | 841e0e8e1094a2541429539f7712ca7dfb23e6de99e771aa00b3581f99ba61c0 |