目录
目录README.md

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.

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号