{"id":25026052,"url":"https://github.com/nicolasbauw/world-time-api","last_synced_at":"2025-04-13T11:51:13.348Z","repository":{"id":62444847,"uuid":"206972675","full_name":"nicolasbauw/world-time-api","owner":"nicolasbauw","description":"An API to retrieve date / time / daylight saving time informations about a timezone.","archived":false,"fork":false,"pushed_at":"2024-04-12T12:19:00.000Z","size":127,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T06:47:26.589Z","etag":null,"topics":["api","docker","dockerfile","rust","time","timezone","world"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/nicolasbauw.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}},"created_at":"2019-09-07T13:33:17.000Z","updated_at":"2024-12-01T18:23:57.000Z","dependencies_parsed_at":"2024-04-12T13:40:38.988Z","dependency_job_id":"816f5996-79eb-4ede-bc8d-58d38911b9de","html_url":"https://github.com/nicolasbauw/world-time-api","commit_stats":{"total_commits":71,"total_committers":3,"mean_commits":"23.666666666666668","dds":0.323943661971831,"last_synced_commit":"17843cd6647337e1112b491f5283b0159210faae"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbauw%2Fworld-time-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbauw%2Fworld-time-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbauw%2Fworld-time-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbauw%2Fworld-time-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolasbauw","download_url":"https://codeload.github.com/nicolasbauw/world-time-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710438,"owners_count":21149188,"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":["api","docker","dockerfile","rust","time","timezone","world"],"created_at":"2025-02-05T17:18:50.630Z","updated_at":"2025-04-13T11:51:13.319Z","avatar_url":"https://github.com/nicolasbauw.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# World Time API\n\n[![Current Crates.io Version](https://img.shields.io/crates/v/world-time-api.svg)](https://crates.io/crates/world-time-api)\n[![Downloads badge](https://img.shields.io/crates/d/world-time-api.svg)](https://crates.io/crates/world-time-api)\n\nAn API to retrieve date / time / daylight saving time informations about a timezone.\n\nExample:\n```\ncurl http://localhost:8000/zoneinfo/Europe/Paris\n{\"abbreviation\":\"CEST\",\"datetime\":\"2019-10-08T20:16:13.612030900+02:00\",\"dst_from\":\"2019-03-31T01:00:00Z\",\"dst_offset\":7200,\"dst_period\":true,\"dst_until\":\"2019-10-27T01:00:00Z\",\"raw_offset\":3600,\"timezone\":\"Europe/Paris\",\"utc_datetime\":\"2019-10-08T18:16:13.612030900Z\",\"utc_offset\":\"+02:00\",\"week\":40}\n```\n\nIt uses system TZfiles (default location on Linux and Macos /usr/share/zoneinfo).\nYou can override the TZfiles default location with the TZFILES_DIR environment variable (ending by a /).\nThat also works on Windows, for example:\n\n```\n$env:TZFILES_DIR=\"C:\\Users\\nbauw\\Dev\\rs-tzfile\\zoneinfo\\\"; cargo run\n```\n\nSome explanations about the offset fields:\n- raw_offset : the \"normal\" offset to utc, in seconds\n- dst_offset : the offset to utc during daylight saving time, in seconds\n- utc_offset : the current offset to utc, taking into account daylight saving time or not (according to dst_from and dst_until), in +/- HH:MM\n\nProvided dockerfile (which is no longer maintained) builds the app with statically compiled musl libc and then uses an alpine image to keep a low size.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasbauw%2Fworld-time-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasbauw%2Fworld-time-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasbauw%2Fworld-time-api/lists"}