Java Reference
In-Depth Information
Method
Introduced
Description
setUTCHours(hours [, minutes,
seconds, milliseconds])
JavaScript 1.3
Sets the hour of the day for the
Date
object according to
universal time.
setUTCMilliseconds(milliseconds)
JavaScript 1.3
Sets the number of milliseconds for
the
Date
object according to uni-
versal time.
setUTCMinutes(mintes [, seconds,
milliseconds])
JavaScript 1.3
Sets the number of minutes for
the
Date
object according to
universal time.
setUTCMonth(month [, day])
JavaScript 1.3
Sets the month for the Date object
according to universal time.
setUTCSeconds()
JavaScript 1.3
Sets the number of seconds for the
Date object according to universal
time.
setYear(year)
JavaScript 1.0
Sets the year for the Date
object. Deprecated in favor of
setFullYear().
toGMTString()
JavaScript 1.0
Converts the Date object to a string
according to Greenwich Mean
Time. Replaced by toUTCString.
toLocaleString()
JavaScript 1.0
Converts the Date object to a string
according to the local time zone.
toString()
JavaScript 1.1
Converts the
Date
object into a
string.
toUTCString()
JavaScript 1.3
Converts the
Date
object to a string
according to universal time.
UTC(year, month [, day, hours,
minutes, seconds, milliseconds])
JavaScript 1.0
Retrieves the number of millisec-
onds in a date since January 1 1970
00:00:00, universal time.
valueOf()
JavaScript 1.1
Returns the primitive value of the
Date
object.
Function
ActiveXObject functions represent a block of JavaScript code that is called on demand. Introduced in
JavaScript 1.1, a
Function
object is created with the
Function
constructor.