Do you need to collaborate in a worldwide distributed team?
The human brainstem will always adjust performance according to available daylight. If you want your team to perform optimally, take into account the local available daylight, disregarding artificial time zones and banking hours.
100% pure golang, lib/api has no external dependencies Example app has one. Use it as APP or api (see api.go).
Backend is a minimized, boiled down and heavy adapted static fork of github.com/sj14/astral, who is afork of github.com/sffjunkie/astral. see pkg sun/sun.go for details (ALL CREDITS GOES TO THE AUTHOR(S))
go install paepcke.de/daylight/cmd/daylight@latest
github.com/paepckehh/daylight/releases
GSP_LAT=53.564432 GPS_LONG=9.95118 daylight
Sunrise: 04:00:39 || Sunset 18:37:09 || Noon: 11:18:23 || Daylight: 14h36m30s
IATA=TXL daylight
Sunrise: 04:00:39 || Sunset 18:37:09 || Noon: 11:18:23 || Daylight: 14h36m30s
IATA=BER daylight ask
true
IATA=PER daylight ask
false
IATA=PER daylight unix
#!/bin/sh
export GPS_LAT="-31.94"
export GPS_LONG="115.97"
export GPS_ELEVATION="0"
export GPS_SUN_RISE="23:04:38"
export GPS_SUN_SET="09:21:26"
export GPS_SUN_NOON="04:13:07"
export GPS_SUN_DAYLIGHT="10h16m48s"
pkg.go.dev/paepcke.de/daylight
Generated by OpenAI.
Yes, Please! PRs Welcome!