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

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