skillfed

local-crontab

Convert local crontabs to UTC crontabs

local-crontab v0.3.0 334.0K downloads/30d#7,495 on PyPI12
Permissive license MIT Abandoned released

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-crontab

uv

uv add local-crontab

poetry

poetry add local-crontab

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Libraries :: Python Modules

Tags

crontab timezone conversionlocal cron to utcdaylight saving time crontimezone-aware crontabcron utc converterlocal timezone cron scheduler
cron-schedulingtimezone-handling

More Python Modules packages