{"id":22123086,"url":"https://github.com/bcrist/tempora","last_synced_at":"2025-03-24T07:28:03.899Z","repository":{"id":226693391,"uuid":"769409317","full_name":"bcrist/tempora","owner":"bcrist","description":"Simple Zig Dates/Times/Timezones","archived":false,"fork":false,"pushed_at":"2025-02-14T02:25:40.000Z","size":358,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T03:26:42.584Z","etag":null,"topics":["calendar","date","datetime","time","tz","tzdata","tzinfo","zig","zig-library","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/bcrist.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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":"2024-03-09T02:04:51.000Z","updated_at":"2025-02-14T02:25:44.000Z","dependencies_parsed_at":"2024-03-09T03:26:30.236Z","dependency_job_id":"761a054d-3d7b-4b1d-a8c7-9b46b5ca7ec2","html_url":"https://github.com/bcrist/tempora","commit_stats":null,"previous_names":["bcrist/tempora"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcrist%2Ftempora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcrist%2Ftempora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcrist%2Ftempora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcrist%2Ftempora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcrist","download_url":"https://codeload.github.com/bcrist/tempora/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245226724,"owners_count":20580738,"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":["calendar","date","datetime","time","tz","tzdata","tzinfo","zig","zig-library","zig-package","ziglang"],"created_at":"2024-12-01T15:29:14.458Z","updated_at":"2025-03-24T07:28:03.881Z","avatar_url":"https://github.com/bcrist.png","language":"Zig","readme":"# Tempora\n### Simple Zig Dates/Times/Timezones\n\n## Features\n* Efficient storage (32b `Time`, 32b `Date`, 64b `Date_Time`)\n* Composition and decomposition (year, ordinal day/week, month, day, weekday, hour, minute, second, ms)\n* Add/subtract days/hours/minutes/seconds/ms\n* Advance to the next weekday/day/ordinal day\n* Convert to/from unix timestamps\n* Embedded IANA timezone database and modified version of [zig-tzif](https://github.com/leroycep/zig-tzif) (adds about 200k to binary size when used)\n* Query current timezone on both unix and Windows systems\n* Moment.js style formatting and parsing (through `std.fmt`)\n\n## Limitations\n* It's not possible to store most \"out of bounds\" dates/times (e.g. Jan 32).\n* Localized month and weekday names are not supported; only English.\n* Non-Gregorian calendars are not supported.\n* Date/time values directly correspond to timestamps, so accurate durations that take leap seconds into account are not possible (but leap seconds are being abolished in 2035 anyway).\n* I am certain that there are more optimized algorithms for timestamp \u003c--\u003e calendar conversions (but performance should be fine for all but the most demanding use cases).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcrist%2Ftempora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcrist%2Ftempora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcrist%2Ftempora/lists"}