{"id":13710436,"url":"https://github.com/leroycep/zig-tzif","last_synced_at":"2026-06-10T13:03:11.800Z","repository":{"id":47626707,"uuid":"338434649","full_name":"leroycep/zig-tzif","owner":"leroycep","description":"TZif parsing for Zig","archived":false,"fork":false,"pushed_at":"2024-07-26T03:33:17.000Z","size":164,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T19:24:37.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/leroycep.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":"2021-02-12T21:13:42.000Z","updated_at":"2024-12-28T00:30:14.000Z","dependencies_parsed_at":"2024-11-13T20:34:13.198Z","dependency_job_id":"a0efbf9c-a675-4aba-87ea-3788db2f4526","html_url":"https://github.com/leroycep/zig-tzif","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leroycep/zig-tzif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leroycep%2Fzig-tzif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leroycep%2Fzig-tzif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leroycep%2Fzig-tzif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leroycep%2Fzig-tzif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leroycep","download_url":"https://codeload.github.com/leroycep/zig-tzif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leroycep%2Fzig-tzif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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-08-02T23:00:56.171Z","updated_at":"2026-06-10T13:03:11.783Z","avatar_url":"https://github.com/leroycep.png","language":"Zig","funding_links":[],"categories":["Libraries","Language Essentials"],"sub_categories":["Date, Time and Timezones"],"readme":"# Zig TZif\n\nThis repository implements TZif parsing, according to [RFC 8536][].\n\n[rfc 8536]: https://datatracker.ietf.org/doc/html/rfc8536\n\n## Usage\n\nTake a look at the [examples][] to get an idea of this library works. I\nrecommend starting with the [localtime][] example.\n\n[examples]: ./examples/\n[localtime]: ./examples/localtime.zig\n\n### Add it as a package\n\nTo start, add zig-tzif to your `build.zig.zon`:\n\n```zig\n.{\n    .name = \"your-project\",\n    .version = \"0.1.0\",\n    .dependencies = .{\n        .tzif = .{\n            .url = \"https://github.com/leroycep/zig-tzif/archive/fdac55aa9b4a59b5b0dcba20866b6943fc00765d.tar.gz\",\n            .hash = \"1220459c1522d67e7541b3500518c9db7d380aaa962d433e6704d87a21b643502e69\",\n        },\n    },\n}\n```\n\nThen, add `zig-tzif` to executable (or library) in the `build.zig`:\n\n```zig\nconst Build = @import(\"std\").Build;\n\npub fn build(b: *Build) void {\n    const target = b.standardTargetOptions(.{});\n    const optimize = b.standardOptimizeOption(.{});\n\n    // Get the tzif dependency\n    const tzif = b.dependency(\"tzif\", .{\n        .target = target,\n        .optimize = optimize,\n    });\n\n    const exe = b.addExecutable(.{\n        .name = \"tzif\",\n        .root_source_file = .{ .path = \"tzif.zig\" },\n        .target = target,\n        .optimize = optimize,\n    });\n\n    // Add it as a module\n    exe.addModule(\"tzif\", tzif.module(\"tzif\"));\n\n    b.installArtifact(exe);\n}\n\n```\n\n### Useful functions\n\n#### `tzif.parseFile(allocator, filename) !TimeZone`\n\n#### `tzif.parse(allocator, reader, seekableStream) !TimeZone`\n\n#### `TimeZone.localTimeFromUTC(this, utc_timestamp) ?ConversionResult`\n\n## Caveats\n\n-   This library has not been rigorously tested, it might not always produce the\n    correct offset, especially for time zones that have changed between\n    different Daylight Savings schemes.\n-   Does not support version 1 files. Files must be version 2 or 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleroycep%2Fzig-tzif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleroycep%2Fzig-tzif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleroycep%2Fzig-tzif/lists"}