{"library":"local-crontab","title":"local-crontab","description":"local-crontab is a Python wheel and command line utility designed to convert a crontab, defined in a local timezone, into a set of UTC crontabs. This conversion often results in multiple UTC crontabs due to the complexities of Daylight Saving Time (DST). The project is based on an earlier `local-crontab` by UnitedIncome, incorporating bug fixes and extending functionality to convert specific hour and day parts. As of version 0.3.0, released in July 2021, the library appears to be in a maintenance status with infrequent updates.","language":"python","status":"maintenance","last_verified":"Thu Apr 16","install":{"commands":["pip install local-crontab"],"cli":{"name":"local-crontab","version":"local-crontab, version 0.3.0"}},"imports":["from local_crontab import Converter"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from local_crontab import Converter\n\n# Example 1: Convert a crontab from 'America/New_York' to UTC\n# This will typically produce two UTC crontabs due to DST changes.\nconverter_ny = Converter('0 10 * * *', 'America/New_York')\nutc_crontabs_ny = converter_ny.convert()\nprint(f\"Original (NY): 0 10 * * *\")\nprint(f\"UTC conversions for 'America/New_York': {utc_crontabs_ny}\")\n# Expected output similar to: ['0 15 * * *', '0 14 * * *'] (order may vary)\n\n# Example 2: Convert a crontab for 'Europe/Berlin'\n# Also likely to produce two UTC crontabs due to DST.\nconverter_berlin = Converter('30 8 * * *', 'Europe/Berlin')\nutc_crontabs_berlin = converter_berlin.convert()\nprint(f\"\\nOriginal (Berlin): 30 8 * * *\")\nprint(f\"UTC conversions for 'Europe/Berlin': {utc_crontabs_berlin}\")\n# Expected output similar to: ['30 7 * * *', '30 6 * * *'] (order may vary)","lang":"python","description":"Demonstrates how to instantiate the `Converter` class with a local crontab string and its timezone, then use the `convert()` method to get a list of corresponding UTC crontab strings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}