Skip to content

VidocqH/cron-timezone-convert

Repository files navigation

Change cron between timezones

Build Status GitHub

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

About

Change cron between two timezones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages