Latest 0.2.1
Homepage https://github.com/bakkenbaeck/Suntimes
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0, requires ARC
Frameworks Foundation
Authors

Version
Carthage compatible
platforms
License

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

Latest podspec

{
    "name": "Suntimes",
    "summary": "A library to calculate Suntimes, Sunset, and Twilight times based on the user's current location and time zone.",
    "version": "0.2.1",
    "homepage": "https://github.com/bakkenbaeck/Suntimes",
    "license": "MIT",
    "authors": {
        "Bakken & Bu00e6ck": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bakkenbaeck/Suntimes.git",
        "tag": "0.2.1"
    },
    "social_media_url": "https://twitter.com/bakkenbaeck",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "requires_arc": true,
    "source_files": "Sources/**/*",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This