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.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for crontzconvert-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fbf4352eda594c6881db6c3281098be24543ebf9224e128b9c279ee3a12eae8 |
|
MD5 | 71090ddf7ca7cc2fdb20388abfa523fb |
|
BLAKE2b-256 | c2791bf49378ffe2fdd69987676ed73ead8a82ecbc64237c560f5d487c811371 |