Function mozjs_sys::jsapi::JS::NewDateObject1

source ·
pub unsafe extern "C" fn NewDateObject1(
    cx: *mut JSContext,
    year: c_int,
    mon: c_int,
    mday: c_int,
    hour: c_int,
    min: c_int,
    sec: c_int
) -> *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.