All Projects → nathan-osman → go-sunrise

nathan-osman / go-sunrise

Licence: MIT license
Go package for calculating the sunrise and sunset times for a given location

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-sunrise

astro
自用天文算法,公历农历转换、八大行星位置、日出日落月出月落时间、节气物候时间等
Stars: ✭ 33 (-21.43%)
Mutual labels:  sunrise, sunset, calendar, astronomy
Daylight-Calendar-ICS
Daylight Calendar is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.
Stars: ✭ 22 (-47.62%)
Mutual labels:  sunrise, sunset, calendar
KosherCocoa
My Objective-C port of KosherJava. KosherCocoa enables you to perform sunrise-based and sunset-based calculations for Jewish prayer and calendar.
Stars: ✭ 49 (+16.67%)
Mutual labels:  sunrise, sunset, calendar
Solar-Calculator
Calculates the sunrise and sunset for a given date and location (using GEO coordinates). This library uses the method outlined NOAA Solar Calculations Day spreadsheet found at http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html.
Stars: ✭ 36 (-14.29%)
Mutual labels:  sunrise, sunset
sun
Simple library and application that shows sunset and sunrise based on your latitude,longitude
Stars: ✭ 23 (-45.24%)
Mutual labels:  sunrise, sunset
sunrisesunset
🌅 Go package that provides the sunrise and sunset equation
Stars: ✭ 75 (+78.57%)
Mutual labels:  sunrise, sunset
astral
☀️ Go calculations for the position of the sun and moon.
Stars: ✭ 23 (-45.24%)
Mutual labels:  sunrise, sunset
sunraster
A SunPy-affiliated package which provides tools to analyze data from spectral data from any solar mission.
Stars: ✭ 19 (-54.76%)
Mutual labels:  sunrise, astronomy
suncalc-py
A Python port of suncalc.js for calculating sun position and sunlight phases
Stars: ✭ 31 (-26.19%)
Mutual labels:  sunrise, sunset
Sunscreen
🌅 A macOS app that sets your wallpaper based on sunrise and sunset.
Stars: ✭ 52 (+23.81%)
Mutual labels:  sunrise, sunset
rust-sun
A Rust library for calculating sun positions
Stars: ✭ 31 (-26.19%)
Mutual labels:  sunrise, sunset
calendarium-romanum
liturgical calendar library (Roman Catholic, post-Vatican II)
Stars: ✭ 37 (-11.9%)
Mutual labels:  calendar
Comet
A complete VOEvent transport system
Stars: ✭ 20 (-52.38%)
Mutual labels:  astronomy
GDCalendar
Calendar component with RTL languages written in swift
Stars: ✭ 27 (-35.71%)
Mutual labels:  calendar
calendar
calendar 日历的使用
Stars: ✭ 15 (-64.29%)
Mutual labels:  calendar
QLFits
The macOS quicklook plugin for FITS files.
Stars: ✭ 44 (+4.76%)
Mutual labels:  astronomy
UnitfulAstro.jl
An extension of Unitful.jl for astronomers.
Stars: ✭ 18 (-57.14%)
Mutual labels:  astronomy
telegraf-calendar-telegram
Inline calendar for Telegram bots using Telegraf framework
Stars: ✭ 43 (+2.38%)
Mutual labels:  calendar
webmail-pro-8
Webmail front-end for existing mail server, with personal calendar, contacts, and mobile sync.
Stars: ✭ 23 (-45.24%)
Mutual labels:  calendar
Chempy
Start with the Chempy tutorial
Stars: ✭ 21 (-50%)
Mutual labels:  astronomy

go-sunrise

Build Status Coverage Status Go Report Card GoDoc MIT License

Go package for calculating the sunrise and sunset times for a given location based on this method.

Usage

To calculate sunrise and sunset times, you will need the following information:

  • the date for which you wish to calculate the times
  • the latitude and longitudinal coordinates of the location

Begin by importing the package:

import "github.com/nathan-osman/go-sunrise"

Next, feed the information into the SunriseSunset() method:

rise, set := sunrise.SunriseSunset(
    43.65, -79.38,          // Toronto, CA
    2000, time.January, 1,  // 2000-01-01
)

The two return values will be the sunrise and sunset times for the location on the given day as time.Time values. If sun does not rise or set, both return values will be time.Time{}.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].