{"id":15557466,"url":"https://github.com/icholy/recurring","last_synced_at":"2025-08-17T13:31:44.692Z","repository":{"id":53849263,"uuid":"102903877","full_name":"icholy/recurring","owner":"icholy","description":"Implementation of Martin Fowler's Recurring Events for Calendars","archived":false,"fork":false,"pushed_at":"2019-02-08T17:26:40.000Z","size":40,"stargazers_count":54,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T09:01:43.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/icholy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-08T20:57:42.000Z","updated_at":"2024-07-23T10:04:56.000Z","dependencies_parsed_at":"2022-08-23T09:01:31.512Z","dependency_job_id":null,"html_url":"https://github.com/icholy/recurring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icholy/recurring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Frecurring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Frecurring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Frecurring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Frecurring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icholy","download_url":"https://codeload.github.com/icholy/recurring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Frecurring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856561,"owners_count":24657688,"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-17T02:00:09.016Z","response_time":129,"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-10-02T15:18:01.542Z","updated_at":"2025-08-17T13:31:44.459Z","avatar_url":"https://github.com/icholy.png","language":"Go","readme":"# Recurring\n\n\u003e This is an Implementation of Martin Fowler's [Recurring Events\nfor Calendars](https://martinfowler.com/apsupp/recurring.pdf)\n\n[![](https://img.shields.io/badge/godoc-reference-5272B4.svg)](https://godoc.org/github.com/icholy/recurring)\n\n\n## Example:\n\n``` go\n\nimport (\n\t\"time\"\n\t\"fmt\"\n\t\"github.com/icholy/recurring\"\n)\n\nfunc main() {\n\t\n\tnewyears := recurring.And(\n\t\trecurring.January,\n\t\trecurring.Day(1)\n\t)\n\n\thalloween := recurring.And(\n\t\trecurring.October,\n\t\trecurring.Day(31),\n\t)\n\n\tholidays := recurring.Or(newyears, halloween)\n\n\tweekends := recurring.Weekdays(\n\t\ttime.Saturday,\n\t\ttime.Sunday,\n\t)\n\n\tworkdays := recurring.And(\n\t\trecurring.Not(weekends),\n\t\trecurring.Not(holidays),\n\t)\n\n\tfor _, t := range recurring.NextN(t, expr, 10) {\n\t\tfmt.Println(t)\n\t}\n\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficholy%2Frecurring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficholy%2Frecurring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficholy%2Frecurring/lists"}