Swift Package Index


Strong typed, autocompleted time zones with locations for Swift.


  • The latest stable release is 1.0.1. Released almost 2 years ago.
  • The last commit to master was almost 2 years ago.

Swift Version Compatibility

  • 1.0.1 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.0.1 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

TimeZones (🕐)

Strong typed, autocompleted time zones with locations for Swift.

Usage

Some examples:

import TimeZones

let gmt = TimeZone(abbrevation: .gmt)

let budapest = TimeZone.Europe.Budapest
budapest.identifier //"Europe/Budapest"
budapest.latitude // 47.497_912
budapest.longitude // 19.040_235
budapest.timeZone // TimeZone object

Install

Just use the Swift Package Manager as usual:

.package(url: "https://github.com/binarybirds/timezones", from: "1.0.0"),

⚠️ Don't forget to add "TimeZones" to your target as a dependency!

License

WTFPL - Do what the fuck you want to.