#[allow(clippy::let_and_return)]
#[cfg(feature = "math")]
mod math;
#[cfg(any(test, feature = "chrono"))]
mod parse;
#[cfg(any(test, feature = "chrono"))]
mod print;
#[cfg(any(test, all(feature = "chrono", feature = "serde")))]
mod serde;
#[cfg(not(any(feature = "math", feature = "chrono", feature = "serde")))]
compile_error!("Please specify one of the features: math, chrono, or serde");
#[cfg(feature = "math")]
pub use crate::math::{
days_back,
days_back_from,
next_day,
tomorrow,
};
#[cfg(feature = "chrono")]
pub use crate::parse::{
parse_system_time_from_date_str,
parse_system_time_from_str,
};
#[cfg(feature = "chrono")]
pub use crate::print::{
print_system_time_to_iso8601_date,
print_system_time_to_rfc3339,
print_system_time_to_rfc3339_with_nanos,
};
#[cfg(all(feature = "chrono", feature = "serde"))]
pub use crate::serde::{
optional_system_time_from_str,
optional_system_time_to_rfc3339,
optional_system_time_to_rfc3339_with_nanos,
system_time_from_date_str,
system_time_from_millis,
system_time_from_secs,
system_time_from_str,
system_time_to_millis,
system_time_to_rfc3339,
system_time_to_rfc3339_with_nanos,
};
#[cfg(all(feature = "chrono", feature = "chrono-tz", feature = "serde"))]
pub use crate::serde::{
system_time_from_millis_in_new_york,
system_time_to_millis_in_new_york,
};