Function mozjs::jsapi::NewDateObject1

source ยท
pub unsafe extern "C" fn NewDateObject1(
    cx: *mut JSContext,
    year: i32,
    mon: i32,
    mday: i32,
    hour: i32,
    min: i32,
    sec: i32,
) -> *mut JSObject
Expand description

Create a new Date object for a year/month/day-of-month/hour/minute/second.

The created date is initialized with the time value

TimeClip(UTC(MakeDate(MakeDay(year, mon, mday), MakeTime(hour, min, sec, 0.0))))

where each function/operation is as specified in ECMAScript.