pub fn unix_from_civil(
year: i64,
month: u32,
day: u32,
hour: u8,
minute: u8,
second: u8,
) -> u64Expand description
Converts a civil date-time to UNIX seconds.
The inverse of civil_from_unix; out-of-range fields are clamped to a
valid date (month/day to the month’s length) instead of panicking, so a
caller reading a partially initialised structure cannot trap the kernel.