pub unsafe fn get_time(
    context: *mut JSContext,
    date_ref: &JSValueRef
) -> 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