|ReleasedLast Release||Dec 2017|
Maintained by Anthony Persaud.
|LOCLines of Code||64|
This utility is the Swift 3.0 port of the APTimeZones library with the support for bundled frameworks. If your project is Objective-C, we recommend using theirs.
To continue using Swift 2.2 version, use version
//San Diego, CA, USA let location = CLLocation(latitude: 32.88, longitude: -117.15) //TimeZone from extension var timeZone = location.timeZone print(timeZone) //or calling the class method timeZone = TimeZoneLocate.timeZone(location: location) print(timeZone) //if you have the country code, you can speed things up. timeZone = TimeZoneLocate.timeZone(location: location, countryCode: "US")
To install it, simply add the following line to your Podfile:
TimeZoneLocate is available under the MIT license. See the LICENSE file for more info.