This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// This file is a copy of [solar.c](https://github.com/jonls/redshift/blob/master/src/solar.c) from redshift. | |
/// | |
/// This module makes extensive use of the [Julian Day notation](https://en.wikipedia.org/wiki/Julian_day) | |
/// to measure elapsed days between events and in calculations. | |
use std::collections::HashMap; | |
use chrono; | |
use chrono::prelude::*; | |
/* Ported from javascript code by U.S. Department of Commerce, | |
National Oceanic & Atmospheric Administration: | |
http://www.srrb.noaa.gov/highlights/sunrise/calcdetails.html |