tz/utils/mod.rs
1//! Some useful utilities.
2
3mod const_fns;
4
5#[cfg(feature = "std")]
6mod system_time;
7
8pub(crate) use const_fns::{binary_search_i64, binary_search_leap_seconds, binary_search_transitions, cmp, min, try_into_i32, try_into_i64};
9
10#[cfg(feature = "std")]
11pub(crate) use system_time::{current_total_nanoseconds, current_unix_time};