macro_rules! as_days {
($x:expr) => { ... };
}Expand description
Converts total attoseconds (i128) → whole days (i128).
Equivalent to Dt::attos_to_days.
Truncates toward zero.
§Examples
Example shows attos inputs being built with macros rather than counting attosecond zeros by hand.
use deep_time::macros::{as_days, days, hours};
// an amount of attoseconds that is equal to
// −1.5 d becomes −1 days
assert_eq!(as_days!(-days!(1) - hours!(12)), -1);