Suntimes 0.2.1

Suntimes 0.2.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2016
SPMSupports SPM

Maintained by Elvis Nuñez.



Suntimes 0.2.1

Suntimes is based in EDSunriseSet, an Objective-C wrapper for the C languages routines created by Paul Schlyter.

Features

  • Calculates Suntimes and Sunset times
  • Calculates Civil, Nautical, and Astronomical twilight
  • Times are calculated based on the provided time zone, latitute, and longitude

Usage

let sunriseSet = Suntimes(date: Date(), timeZone: TimeZone.autoupdatingCurrent, latitude: 11.9416397, longitude: 22.7449623)
let sunrise = sunriseSet.sunrise
let sunset = sunriseSet.sunset

Installation

Suntimes is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Suntimes' , '~> 1'

Suntimes is also available through Carthage. To install it, simply add the following line to your Cartfile:

github "bakkenbaeck/Suntimes" ~> 1.0

License

Suntimes is available under the MIT license. See the LICENSE file for more info.

Author

Bakken & Bæck, @bakkenbaeck