pub fn component_of(ms: i64, which: u8) -> i64Expand description
Extract one calendar component from epoch milliseconds, using Chrono’s
field order: 0 year, 1 month, 2 day, 3 hour, 4 minute,
5 second, 6 millisecond, 7 microsecond, 8 nanosecond.
Returns 0 for unknown component indices.