betacalendars 1.0.0-1
“Deterministic calendar grids, recurrence and date-boundary utilities for Lua”
README basename (markdown/plain text)GitHub Actions workflow definition path
SHA-256953b149e46e4d88b8081cf40fa01dc4e1ba069d2174fbd76c40e00cee0f9cf15
MaleculeO(As)H₃(CmDb₂Mg)Md₃(Bk₂Pa)
Evidence
1# Beta Calendars for Lua
2
3Deterministic Gregorian calendar grids, bounded recurrence rules, business-day helpers, and date-boundary reports for Lua. The library is presentation-neutral, pure Lua, and works offline.
4
5## Why this project exists
6
7Calendar code often mixes date arithmetic with local timestamps or rendering. This package keeps civil dates as `{ year, month, day }` tables and returns stable structures that applications, games, command-line tools, and test suites can format as they need.
8
9## Features
⋯7 lines
101:77… cks. The supported and tested matrix is Lua 5.1 through 5.4 and LuaJIT.
102
103## Testing
⋯9 lines
112:132… iants across a full 400-year Gregorian cycle.
113
114## Contributing
115
116See [CONTRIBUTING.md](CONTRIBUTING.md). Please include focused tests for changes to date arithmetic or recurrence semantics.
117
118## Security
119
120This library performs no network requests, telemetry, analytics, or automatic update checks. See [SECURITY.md](SECURITY.md).
121
122## License
123
124MIT. See [LICENSE](LICENSE).
125
126## Project
127
128Maintained by Beta Calendars: <https://www.betacalendars.com/>. Source and issue tracker: <https://github.com/mateopedersen/betacalendars-lua>.
1local date = require("betacalendars.date")
2local M = {}
3
4local function matches_nth(year, month, weekday, n)
5 local first = { year = ye …
20:13… y == "error" then error(string.format("day %d does not exist in %04d-%02d", day, year, month)) end
21 error("invalid_day must be 'skip', 'clamp', or 'error'")
22 elseif rule.type == "nth_weekday" …
No evidence locations were recorded for this file. Raw result