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