rust_zmanim/util/math_helper.rs
1//! Some constants that mostly exist to label the role of some number in the
2//! rest of the code
3
4/// Number of nanoseconds in a second
5pub const SECOND_NANOS: f64 = 1_000_000_000.0;
6
7/// Number of minutes in an hour
8pub const MINUTE_SECONDS: f64 = 60.0;
9
10/// Number of nanoseconds in a minute
11pub const MINUTE_NANOS: f64 = SECOND_NANOS * 60.0;
12
13/// Number of minutes in an hour
14pub const HOUR_MINUTES: f64 = 60.0;
15
16/// Number of seconds in an hour
17pub const HOUR_SECONDS: f64 = HOUR_MINUTES * MINUTE_SECONDS;