Sunrise 0.1.1

Sunrise 0.1.1

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

Maintained by Elvis Nuñez.



Sunrise 0.1.1

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

Features

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

Usage

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

Installation

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

pod 'Sunrise' , '~> 1'

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

github "bakkenbaeck/Sunrise" ~> 1.0

License

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

Author

Bakken & Bæck, @bakkenbaeck