Function JSObject.makeDate

Creates a JavaScript Date object, as if by invoking the built-in Date constructor.

static JSObject makeDate (
  Machine machine,
  JSValue[] arguments...
);

Parameters

NameDescription
machineA Machine.
argumentsArguments to pass to the Date constructor.

Returns

A JSObject that is a Date.

Throws

JSException when the JS VM is aborted with the xsUnhandledExceptionExit status.