TimeZones

1.0.1

Strong typed, autocompleted time zones with locations for Swift.
BinaryBirds/TimeZones

What's New

Better TZ structure

2019-02-14T20:20:15Z
  • refactored structs to enums with some POP magic 💫

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.

Description

  • Swift Tools 4.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Sep 04 2022 14:58:48 GMT-0500 (GMT-05:00)