Skip to main content

epoch_day

Function epoch_day 

Source
pub fn epoch_day(secs: u64) -> i64
Expand description

The UTC day secs falls on, counted from the Unix epoch.

Trips and scans are both grouped by it, computed from the one timestamp the guard takes per request, so a request scanned a moment before midnight cannot have its trip counted against the next day.