Function py_is_within_last_24_hours
Source pub fn py_is_within_last_24_hours(timestamp_ns: u64) -> PyResult<bool>
Expand description
Return whether the given UNIX nanoseconds timestamp is within the last 24 hours.
§Parameters
timestamp_ns : int
The UNIX nanoseconds timestamp datum.
§Returns
bool
§Raises
ValueError
If timestamp is invalid.
§Errors
Returns a PyErr if the provided timestamp is invalid.