pub fn format_datetime(ts: f64) -> String
Formats a Unix timestamp as yyyy-MM-dd HH:mm:ss.
yyyy-MM-dd HH:mm:ss