Function quickjs_runtime::quickjs_utils::dates::set_time
source · pub unsafe fn set_time(
context: *mut JSContext,
date_ref: &QuickJsValueAdapter,
timestamp: f64,
) -> Result<(), JsError>
Expand description
set the timestamp for a Date object
§Safety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid