{"id":36589322,"url":"https://github.com/logicsquad/recurring","last_synced_at":"2026-01-12T08:09:48.101Z","repository":{"id":57737391,"uuid":"136924338","full_name":"logicsquad/recurring","owner":"logicsquad","description":"A Java implementation of the ideas in Martin Fowler's \"Recurring Events for Calendars\".","archived":false,"fork":false,"pushed_at":"2024-01-05T10:45:27.000Z","size":153,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-08-22T12:22:21.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logicsquad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2018-06-11T12:38:12.000Z","updated_at":"2024-11-09T06:03:44.000Z","dependencies_parsed_at":"2024-01-04T10:31:29.276Z","dependency_job_id":"bde4c8a3-ead6-4361-8080-d42399990a40","html_url":"https://github.com/logicsquad/recurring","commit_stats":null,"previous_names":["paulhoadley/recurring"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/logicsquad/recurring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Frecurring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Frecurring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Frecurring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Frecurring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicsquad","download_url":"https://codeload.github.com/logicsquad/recurring/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Frecurring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-12T08:09:42.691Z","updated_at":"2026-01-12T08:09:48.092Z","avatar_url":"https://github.com/logicsquad.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/logicsquad/recurring/workflows/build/badge.svg)\n[![License](https://img.shields.io/badge/License-BSD-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\nRecurring\n=========\n\nWhat is this?\n-------------\nThis project provides some interfaces and classes to represent\n_recurring events_ in Java. It is able to represent some simple\n\"temporal expressions\", such as:\n\n* First Thursday of the month\n* Last Wednesday of the month\n* Every day in June\n* Every day from 17 May through 19 August\n* 1 September\n\nThe expressions are agnostic to the _year_.\n\nIt also supports some simple ways of combining these expressions: union,\nintersection and difference. These can be combined in arbitrarily\ncomplex ways. For example:\n\n* First Thursday and last Wednesday of every month from 17 May through\n19 August, except the month of June\n* Second Monday of January through March\n\nGetting started\n---------------\n`ScheduleElement`s (which link a `TemporalExpression` to some object\nrepresenting an event) can be combined into a `Schedule`, which can\nthen answer queries about the elements it contains. For example,\nconstruct a `TemporalExpression` representing an event that occurs on\nthe first Thursday and last Wednesday of every month, and then put a\n`ScheduleElement` into a `Schedule`:\n\n    TemporalExpression firstThursday = DayInMonth.of(DayOfWeek.THURSDAY, 1);\n    TemporalExpression lastWednesday = DayInMonth.of(DayOfWeek.WEDNESDAY, -1);\n    ScheduleElement\u003cString\u003e element = ScheduleElement.of(\"Meeting\", Union.of(firstThursday, lastWednesday));\n    Schedule\u003cString\u003e schedule = Schedule.of(element);\n\nAmong other things, the `Schedule` can now tell us if the meeting is on\ntoday:\n\n    boolean today = schedule.isOccurring(\"Meeting\", LocalDate.now());\n\nwhen the meeting last occurred:\n\n    LocalDate last = schedule.previousOccurrence(\"Meeting\", LocalDate.now());\n\nand all future dates of the meeting:\n\n\tStream\u003cLocalDate\u003e future = schedule.futureDates(\"Meeting\", LocalDate.now());\n\nUsing Recurring\n---------------\nYou can use Recurring in your projects by including it as a\ndependency:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003enet.logicsquad\u003c/groupId\u003e\n      \u003cartifactId\u003erecurring\u003c/artifactId\u003e\n      \u003cversion\u003e0.4\u003c/version\u003e\n    \u003c/dependency\u003e\n\nNote that _the API may change prior to a `1.0` release,_ at which time\nit will remain stable, consistent with [semantic\nversioning](https://semver.org).\n\nContributing\n------------\nBy all means, open issue tickets and pull requests if you have something\nto contribute.\n\nReferences\n----------\nThis project implements the ideas in [Martin Fowler's \"Recurring Events\nfor Calendars\"](https://martinfowler.com/apsupp/recurring.pdf) (1997).\nWhere appropriate, we have made some changes to the code and ideas\npresented in the original article.\n\n* We will make use of interfaces where appropriate. The original article\n  hinted at interfaces, but mostly gave examples of concrete classes.\n* We will use `java.time.LocalDate` instead of `java.util.Date`.\n* We will make some minor changes to suggested class names.\n\nMost of this just reflects more modern Java idioms and changes in the\nlanguage and libraries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicsquad%2Frecurring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicsquad%2Frecurring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicsquad%2Frecurring/lists"}