Skip to main content

py_last_weekday_nanos

Function py_last_weekday_nanos 

Source
pub fn py_last_weekday_nanos(year: i32, month: u32, day: u32) -> PyResult<u64>
Expand description

Calculates the last weekday (Mon-Fri) from the given year, month and day.

ยงErrors

Returns an error if the date is invalid.