{"id":16856355,"url":"https://github.com/kijewski/tzdb","last_synced_at":"2025-04-04T05:08:18.488Z","repository":{"id":37032547,"uuid":"461844503","full_name":"Kijewski/tzdb","owner":"Kijewski","description":"Static time zone information for tz-rs.","archived":false,"fork":false,"pushed_at":"2024-09-30T08:41:38.000Z","size":1550,"stargazers_count":42,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"v0.7.x","last_synced_at":"2024-10-14T14:10:36.681Z","etag":null,"topics":["iana-tzdb","rust","timezone","tz","tzdata"],"latest_commit_sha":null,"homepage":"https://docs.rs/tzdb","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kijewski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-21T12:08:33.000Z","updated_at":"2024-09-30T08:41:42.000Z","dependencies_parsed_at":"2024-10-25T18:41:38.719Z","dependency_job_id":"3c5f5bbb-a33a-4676-847c-db1e1000ebfc","html_url":"https://github.com/Kijewski/tzdb","commit_stats":{"total_commits":69,"total_committers":4,"mean_commits":17.25,"dds":"0.28985507246376807","last_synced_commit":"d5231f717790fa5b7b7a55000582ac7fffc5de92"},"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kijewski%2Ftzdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kijewski%2Ftzdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kijewski%2Ftzdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kijewski%2Ftzdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kijewski","download_url":"https://codeload.github.com/Kijewski/tzdb/tar.gz/refs/heads/v0.7.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123107,"owners_count":20887261,"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":["iana-tzdb","rust","timezone","tz","tzdata"],"created_at":"2024-10-13T14:03:51.923Z","updated_at":"2025-04-04T05:08:18.453Z","avatar_url":"https://github.com/Kijewski.png","language":"Rust","readme":"# tzdb — Time Zone Database\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Kijewski/tzdb/ci.yml?branch=v0.7.x\u0026style=flat-square\u0026logo=github\u0026logoColor=white \"GitHub Workflow Status\")](https://github.com/Kijewski/tzdb/actions/workflows/ci.yml)\n[![Crates.io](https://img.shields.io/crates/v/tzdb?logo=rust\u0026style=flat-square \"Crates.io\")](https://crates.io/crates/tzdb)\n[![docs.rs](https://img.shields.io/docsrs/tzdb?logo=docsdotrs\u0026style=flat-square\u0026logoColor=white \"docs.rs\")](https://docs.rs/tzdb/)\n![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.81+-important?logo=rust\u0026style=flat-square \"Minimum Supported Rust Version: 1.81\")\n[![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-informational?logo=apache\u0026style=flat-square)](https://github.com/Kijewski/tzdb/blob/v0.6.1/LICENSE.md \"License: Apache-2.0\")\n\nStatic time zone information for [tz-rs](https://crates.io/crates/tz-rs).\n\nThis crate provides all time zones found in the [Time Zone Database](https://www.iana.org/time-zones).\n\n## Usage examples\n\n```rust\nlet time_zone = tzdb::local_tz()?;       // tz::TimeZoneRef\u003c'_\u003e\nlet current_time = tzdb::now::local()?;  // tz::DateTime\n\n// access by identifier\nlet time_zone = tzdb::time_zone::europe::KYIV;\nlet current_time = tzdb::now::in_tz(tzdb::time_zone::europe::KYIV)?;\n\n// access by name\nlet time_zone = tzdb::tz_by_name(\"Europe/Berlin\")?;\nlet current_time = tzdb::now::in_named(\"Europe/Berlin\")?;\n\n// names are case insensitive\nlet time_zone = tzdb::tz_by_name(\"ArCtIc/LongYeArByEn\")?;\nlet current_time = tzdb::now::in_named(\"ArCtIc/LoNgYeArByEn\")?;\n\n// provide a default time zone\nlet current_time = tzdb::now::local_or(tzdb::time_zone::GMT)?;\nlet current_time = tzdb::now::in_named_or(tzdb::time_zone::GMT, \"Some/City\")?;\n```\n\n## Feature flags\n\n* `local` \u003csup\u003e(enabled by default)\u003c/sup\u003e — enable functions to query the current system time\n* `now` \u003csup\u003e(enabled by default)\u003c/sup\u003e — enable functions to query the current system time\n* `std` \u003csup\u003e(enabled by default, `now` and `local`)\u003c/sup\u003e — enable the use of features in the `std` crate\n* `alloc` \u003csup\u003e(enabled by `std`)\u003c/sup\u003e — enable the use of features in the `alloc` crate\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkijewski%2Ftzdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkijewski%2Ftzdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkijewski%2Ftzdb/lists"}