{"id":21332078,"url":"https://github.com/boldgrid/tdcron","last_synced_at":"2025-08-31T03:35:37.172Z","repository":{"id":62596747,"uuid":"560479498","full_name":"BoldGrid/tdcron","owner":"BoldGrid","description":"A clone of chland/tdcron","archived":false,"fork":false,"pushed_at":"2024-05-13T17:50:50.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-25T15:18:20.362Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BoldGrid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null}},"created_at":"2022-11-01T15:37:44.000Z","updated_at":"2024-05-13T17:50:50.000Z","dependencies_parsed_at":"2025-01-22T14:01:30.039Z","dependency_job_id":null,"html_url":"https://github.com/BoldGrid/tdcron","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BoldGrid/tdcron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoldGrid%2Ftdcron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoldGrid%2Ftdcron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoldGrid%2Ftdcron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoldGrid%2Ftdcron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BoldGrid","download_url":"https://codeload.github.com/BoldGrid/tdcron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoldGrid%2Ftdcron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272935667,"owners_count":25018126,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-21T22:45:53.197Z","updated_at":"2025-08-31T03:35:37.141Z","avatar_url":"https://github.com/BoldGrid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e **WARNING**: This class was written back in 2010 ! Its pretty much untested with all PHP versions \u003e 5.6.0 and might act funny. I mostly pushed it to GitHub for easier access and in case if somebody is looking for a simple cron-parser.\n\n# tdCron\n\ntdCron is a ***very*** simple class to parse cron-expressions and calculate schedules. \n\nFor something more sophisticated (and WAY more modern) you can take a look at the [cron-expression](https://github.com/dragonmantank/cron-expression) package by Michael Dowling and Chris Tankersley.\n\n## Getting Started\n\n### Installation\n\nJust include `class.tdcron.php` and `class.tdcron.entry.php` in your project and you're done.\n\n## Documentation\n\nAs i mentioned before - this class is really, really simple :-) \n\nPlease just look at the code in `test.php` and `class.tdcron.php` - its reasonably well documented and should be pretty easy to understand. \n\nIt basically comes down to calling `tdCron::getNextOccurrence()` or `tdCron::getLastOccurrence()` with your cron-expression as the first parameter and an optional reference-time as the second parameter.\n\nLets say you've got a cron-expression like `5 0 * 8 2` (so something at 00:05 on every tuesday in august). You could use something like\n\n    echo 'next: '.date('d.m.Y, H:i:s', tdCron::getNextOccurrence('5 0 * 8 2');\n\nto see when it should run the next time.\n\n## Running the tests\n\nThere aren't any \"real\" tests included with the class (so you won't find any PHPUnit-stuff here). You can find a bunch of edge-cases in the test.php / test.data.php files that were used to test the class during development.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboldgrid%2Ftdcron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboldgrid%2Ftdcron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboldgrid%2Ftdcron/lists"}