{"id":13340084,"url":"https://github.com/nzrsky/TimeZoneIdentifier","last_synced_at":"2025-03-11T16:32:05.506Z","repository":{"id":200098618,"uuid":"704504391","full_name":"nzrsky/TimeZoneIdentifier","owner":"nzrsky","description":"TimeZone Identifiers for Swift 🌍 ","archived":false,"fork":false,"pushed_at":"2024-12-16T18:27:33.000Z","size":352,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T03:14:46.481Z","etag":null,"topics":["date","ios","macos","swift","time","timezone","timezones","tvos","tzdata","visionos","watchos"],"latest_commit_sha":null,"homepage":"https://nzrsky.github.io/TimeZoneIdentifier/","language":"Swift","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/nzrsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"nzrsky"}},"created_at":"2023-10-13T11:59:40.000Z","updated_at":"2025-01-07T15:02:21.000Z","dependencies_parsed_at":"2023-12-30T09:32:41.760Z","dependency_job_id":"ae1e4518-2664-4386-a9f7-25e5254ba3f3","html_url":"https://github.com/nzrsky/TimeZoneIdentifier","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"6c677de5109f831818cff0726b8c275d9d621544"},"previous_names":["nzrsky/timezoneidentifier"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FTimeZoneIdentifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FTimeZoneIdentifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FTimeZoneIdentifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FTimeZoneIdentifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nzrsky","download_url":"https://codeload.github.com/nzrsky/TimeZoneIdentifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243070389,"owners_count":20231444,"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":["date","ios","macos","swift","time","timezone","timezones","tvos","tzdata","visionos","watchos"],"created_at":"2024-07-29T19:22:07.524Z","updated_at":"2025-03-11T16:32:00.475Z","avatar_url":"https://github.com/nzrsky.png","language":"Swift","readme":"# List of Time Zones Identifiers for Swift 🌍\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nzrsky/TimeZoneIdentifier/blob/main/LICENSE)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/TimeZoneIdentifier.svg)](https://img.shields.io/cocoapods/v/TimeZoneIdentifier.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-orange.svg)](https://docs.revenuecat.com/docs/ios#section-install-via-swift-package-manager)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnzrsky%2FTimeZoneIdentifier%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/nzrsky/TimeZoneIdentifier)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnzrsky%2FTimeZoneIdentifier%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/nzrsky/TimeZoneIdentifier)\n[![codecov](https://codecov.io/gh/nzrsky/TimeZoneIdentifier/graph/badge.svg?token=kET1T95mW9)](https://codecov.io/gh/nzrsky/TimeZoneIdentifier)\n[![CI](https://github.com/nzrsky/TimeZoneIdentifier/actions/workflows/build-test.yml/badge.svg)](https://github.com/nzrsky/TimeZoneIdentifier/actions/workflows/build-test.yml?query=branch%3Amain+)\n\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"image.png\" alt=\"\" style=\"display: inline-block;\" width=\"50%\"\u003e\n\u003c/div\u003e\n\n## Overview\n\nThis Swift library provides a convenient way to handle time zones through the `TimeZoneConvertible` protocol and the `TimeZoneIdentifier` enum. Whether you need the current system time zone, an auto-updating time zone, or specific global time zones, this library has got you covered.\n\n## Features\n\n- Type-safe time zone identifiers.\n- Extendable `TimeZoneConvertible` protocol.\n- Easy-to-use, Swifty API.\n\n## Automatic Updates 🔄\n\nThis library is set up with GitHub Actions to automatically update the list of time zone identifiers every day. The updates are compatible across all iOS versions.\n\nThe workflow ensures that the list stays current, and any changes are committed directly to the repository. Only the differences (diff) are committed, ensuring that the change history remains clean and easy to follow.\n  \n## Installation\n\n### Swift Package Manager\n\nAdd the package dependency to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/nzrsky/TimeZoneIdentifier.git\", from: \"1.0.0\")\n]\n```\n\nThen run:\n\n```bash\nswift build\n```\n\n## Usage\nFirst, import the module:\n\n```swift\nimport TimeZoneIdentifiers\n```\n\n### Using TimeZoneConvertible\nYou can use the TimeZoneConvertible protocol to seamlessly convert between types:\n\n```swift\nlet timeZone: TimeZone = TimeZoneIdentifier.current.timezone()\n```\n\n### Using TimeZoneIdentifier Enum\nThe TimeZoneIdentifier enum allows you to easily access different time zones:\n\n```swift\nlet currentZone = TimeZoneIdentifier.current.timezone()\nlet autoUpdatingZone = TimeZoneIdentifier.autoUpdating.timezone()\nlet specificZone = TimeZoneIdentifier.africaAbidjan.timezone()\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\nMade in 🇱🇻 by Alex Nazarov\n","funding_links":["https://github.com/sponsors/nzrsky"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzrsky%2FTimeZoneIdentifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnzrsky%2FTimeZoneIdentifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzrsky%2FTimeZoneIdentifier/lists"}