nautilus_core::python::datetime

Function py_last_weekday_nanos

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

Return UNIX nanoseconds at midnight (UTC) of the last weekday (Mon-Fri).

§Parameters

year : int The year from the datum date. month : int The month from the datum date. day : int The day from the datum date.

§Returns

int

§Raises

ValueError If given an invalid date.