Skip to content

Command line utility to calculate hours of daylight for a given latitude, and the sunrise for a given latitude and longitude, as well as the delta daylight to one day from the previous.

License

Notifications You must be signed in to change notification settings

cppcooper/daylight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daylight

A CLI app to calculate hours of daylight for a given latitude, local geography not considered.

Install

$ git clone https://github.com/cppcooper/daylight.git
$ cd daylight
$ mkdir build
$ cd build
$ cmake .. -G Ninja
$ sudo ninja install

Example

$ daylight -l 49.88
Day: 100
 daylight: 13h 29m 36s
               +3m 39s from yesterday
 sunrise:  6:17 AM
 sunset:   7:47 PM

About

Command line utility to calculate hours of daylight for a given latitude, and the sunrise for a given latitude and longitude, as well as the delta daylight to one day from the previous.

Resources

License

Stars

Watchers

Forks

Packages

No packages published