Registry / utility / kelvins-sunrisesunset

kelvins-sunrisesunset

JSON →
library0.0.0-20230419165732-4d545fa3ee7dgogounverified

Calculates apparent sunrise and sunset times based on latitude, longitude, UTC offset, and date using NOAA formulas.

go get github.com/kelvins/sunrisesunset
INSTALL
IMPORT
SIG · KELVINS-SUNRISESUN
K
kelvins-sunrisesunset
utilitygov0.0.0-20230419165732-4d545fa3ee7d
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sunrisesunset
github.com/kelvins/sunrisesunset

Get sunrise and sunset times for New York City.

package main import ( "fmt" "time" "github.com/kelvins/sunrisesunset" ) func main() { result, _ := sunrisesunset.GetSunriseSunset(40.7128, -74.0060, -5, time.Now()) fmt.Printf("Sunrise: %v, Sunset: %v\n", result.Sunrise, result.Sunset) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230419165732-4d545fa3ee7dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
kelvins-sunrisesunset — go get kelvins-sunrisesunset · libregistry