Function diff_timestamps
Source pub fn diff_timestamps(lhs: i64, rhs: i64, time_unit: TimeUnit) -> TimeDelta
Expand description
Calculate difference between two timestamps
§Arguments
lhs: First timestamp
rhs: Second timestamp
time_unit: Unit of the timestamps
§Returns
TimeDelta representing lhs - rhs