local-crontab
Convert local crontabs to UTC crontabs
What it is and what it does
local-crontab is a Python library and CLI tool that translates crontab schedules from local time into UTC. Because Daylight Saving Time shifts the offset between local and UTC time at different points in the year, a single local schedule may need multiple UTC crontabs to remain synchronized—this package generates all necessary UTC variants automatically.
You can use it as a library by instantiating a Converter with a cron expression and timezone, then calling to_utc_crons() to get a list of UTC crontabs. Alternatively, use the command-line interface with the local-crontab command to convert expressions directly. The package depends on cron-converter, click, and python-dateutil.
Use it for:
- Convert a recurring local job schedule to UTC for deployment on servers in different timezones.
- Generate multiple UTC crontabs to handle DST transitions automatically without manual intervention.
- Automate cron expression conversion in infrastructure-as-code or configuration management tools.
- Verify that a local cron schedule will execute at the intended UTC times across the year.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts crontab expressions from a local timezone into UTC-equivalent crontabs, accounting for Daylight Saving Time by generating multiple UTC schedules.
Yes, if you need reliable local-to-UTC cron conversion and can accept that the package is no longer maintained. The core logic is stable and the dependencies are lightweight. No known vulnerabilities. Install it for one-time conversions or as part of a system where DST handling is critical; avoid it if you need ongoing bug fixes or support for future timezone rule changes.
Install
local-crontab on PyPI
pip
pip install local-crontabuv
uv add local-crontabpoetry
poetry add local-crontabInstalling local-crontab
Before you install
Low install friction with three lightweight dependencies. However, the package is abandoned—last release was 2021-07-09 and no commits since. Use only if the conversion logic meets your needs without ongoing maintenance.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
pip install local-crontab
from local_crontab import Converter
result = Converter('0 10 * * *', 'America/New_York').to_utc_crons()
print(result)
Requires Python 3.8 or later.
Verify before relying
- Whether the DST handling remains accurate for years after 2021, given the package is no longer maintained.
- Whether the external 'dst check' program mentioned in the description is available or documented elsewhere.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — cron-converter, click, python-dateutil |
| Maintenance | abandoned — 1,862 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 334,043/month — #7,495 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: local_crontab-0.3.0-py3-none-any.whl
Keywords: cron, timezone, utc
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
cron-converterParses cron schedule strings into structured…
permissive · top 5,000 on PyPI
airporttimeConverts between local time and UTC for any…
unclear · top 15,000 on PyPI
crontabParses crontab schedule expressions and…
copyleft · top 5,000 on PyPI
aiocronSchedules async functions to run on cron…
permissive · top 15,000 on PyPI
python-crontabReads, writes, and manipulates system crontab…
copyleft · top 5,000 on PyPI
tzcronParse and iterate over cron/quartz schedule…
permissive · top 15,000 on PyPI
pytzpytz brings the Olson timezone database into…
permissive · top 100 on PyPI
mcp-server-timeProvides a Model Context Protocol server that…
permissive · top 15,000 on PyPI
cronsimParses and evaluates cron expressions to find…
permissive · top 5,000 on PyPI
pyawscronParses and iterates over AWS CloudWatch cron…
permissive · top 15,000 on PyPI