pub fn date_diff_units(ts1: i64, ts2: i64, unit: &str) -> Result<i64, String>
Compute the difference ts2 - ts1 in the specified unit.
ts2 - ts1
Units: "ms" (milliseconds), "s" (seconds), "min" (minutes), "h" (hours), "d" (days).
"ms"
"s"
"min"
"h"
"d"