pub fn seconds_to_hours<T: Into<f64>>(seconds: T) -> f64
Expand description
Converts seconds to hours with 2 decimal places precision
ยงExamples
use ddapi_rs::util::time::seconds_to_hours;
assert_eq!(seconds_to_hours(3600), 1.0); // 1 hour
assert_eq!(seconds_to_hours(5400), 1.5); // 1.5 hours
assert_eq!(seconds_to_hours(3672), 1.02); // 1.02 hours