Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 419 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 419 Bytes

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