crontzconvert-0.1.2
توضیحات
Change crontab between two timezones.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | crontzconvert-0.1.2 |
| نام | crontzconvert |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vidocq |
| ایمیل نویسنده | vidocqho@gmail.com |
| آدرس صفحه اصلی | https://github.com/vidocqh/cron-timezone-convert |
| آدرس اینترنتی | https://pypi.org/project/crontzconvert/ |
| مجوز | MIT |
# 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
```bash
pip3 install crontzconvert
```
## Usage
```python
convert(cron_expression, source_timezone, target_timezone)
```
```python
>> from crontzconvert import convert
>> convert('* 0/12 * * *', 'Asia/Shanghai', 'UTC') # UTC+8 to UTC
'* 16/12 * * *'
```
### TODO
Change day and week when switch timezone
نیازمندی
| مقدار | نام |
|---|---|
| - | pytz |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl crontzconvert-0.1.2:
pip install crontzconvert-0.1.2.whl
نصب پکیج tar.gz crontzconvert-0.1.2:
pip install crontzconvert-0.1.2.tar.gz