{"id":18807011,"url":"https://github.com/zriyansh/cron-parser","last_synced_at":"2026-01-08T22:30:15.783Z","repository":{"id":231668985,"uuid":"782379470","full_name":"zriyansh/cron-parser","owner":"zriyansh","description":"bifurcate cron jobs period in variables","archived":false,"fork":false,"pushed_at":"2024-04-05T07:29:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T21:30:00.176Z","etag":null,"topics":["cron","cron-expression","cron-jobs","cronjob"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zriyansh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-05T07:25:20.000Z","updated_at":"2024-04-05T07:36:40.000Z","dependencies_parsed_at":"2024-04-05T08:44:56.949Z","dependency_job_id":null,"html_url":"https://github.com/zriyansh/cron-parser","commit_stats":null,"previous_names":["zriyansh/cron-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fcron-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fcron-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fcron-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zriyansh%2Fcron-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zriyansh","download_url":"https://codeload.github.com/zriyansh/cron-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239742417,"owners_count":19689309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","cron-expression","cron-jobs","cronjob"],"created_at":"2024-11-07T22:50:34.005Z","updated_at":"2026-01-08T22:30:15.686Z","avatar_url":"https://github.com/zriyansh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cron-parser\n\n\nHere's a sample code output:\n```\n(venv) zriyansh@Priyanshs-MacBook-Air misc % python cron.py          \nEvery 30 seconds\nInput: 0/30 * * * * ? \nOutput:\nschedule_year=0\nschedule_month_of_year=0\nschedule_day_of_month=0\nschedule_day_of_week=Every Day\nschedule_hour_of_day=0\nschedule_min_of_hour=0\nschedule_sec_of_min=Every 30 seconds\n```\n\nGiven a cron job input, lets say `0/30 * * * * ?`, the parser will try to separate the components of time in a separate variable. \n\nHere's a list of cron's you can test out the code with:\n\n```\n  \"0 1 * * *\",\n  \"0 10 1 * * *\",\n  \"0 59 23 * * MON-FRI\",\n  \"0 12 * * MON-FRI\",\n  \"30 8 * * *\",\n  \"0 18 * * SUN\",\n  \"0 0/30 6-19 ? * MON-SUN\",\n  \"0 0 0/6 1/1 * ? *\",\n  \"0 0 2 15 * ?\",\n  \"0 0 2 ? * 2\",\n  \"0 0 2 15 * ?\",\n  \"0 0 2 ? * 2\",\n  \"0 0 2 ? * 2-6\",\n  \"0 0/15 * 1/1 * ? *\",\n  \"0 0/30 6-19 ? * MON-SUN\",\n  \"0/30 * * * * ?\",\n  \"1 45 16 ? * Wed\",\n  \"22 1 * * *\",\n  \"22 1 * * * ?\",\n  \"0 11 11 11 11 ?\",\n  \"0 0 10,18/12 * *\",\n  \"29 53 15 ? * Mon\",\n  \"0 0 2/2 2/2 * ?\",\n  \"1 * 1/2 * *\",\n  \"1 1 * * 1\",\n  \"0 0 * * 1,3\",\n  \"41 31 3 1 1-2 ?\", # error\n  \"0 0/30 6-19 ? * MON-SUN\",\n  \"0 0 2 15 * ?\",\n  \"22 * * * * ?\",\n  \"0 0 23 * * ?\",\n  \"0 15 13 ? * *\",\n  \"0 15 10 * * ?\",\n  \"0 15 10 * * ? *\",\n  \"0 * 14 * * ?\",\n  \"0 0/5 14 * * ?\",    \n  \"0 0-5 14 * * ?\" ,  \n  \"0 10,44 14 ? 3 WED\" \n  \"0 15 10 * * ? 2005\"\n  \"0 15 10 ? * 6L 2002-2005\"\n  \"22 * * * * ?\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzriyansh%2Fcron-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzriyansh%2Fcron-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzriyansh%2Fcron-parser/lists"}