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 universal 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.
JavaScript 1.3
Sets the number of seconds for the Date
object according to universal time.
setUTCSeconds()
JavaScript 1.0
Sets the year for the Date object.
Deprecated in favor of setFullYear() .
setYear(year)
JavaScript 1.0
Converts the Date object to a string
according to Greenwich Mean Time.
Replaced by toUTCString .
toGMTString()
JavaScript 1.0
Converts the Date object to a string
according to the local time zone.
toLocaleString()
JavaScript 1.1
Converts the Date object into a string.
toString()
JavaScript 1.3
Converts the Date object to a string
according to universal time.
toUTCString()
UTC(year, month [,
day, hours, minutes,
seconds, milliseconds])
JavaScript 1.0
Retrieves the number of milliseconds in
a date since January 1, 1970 00:00:00,
universal time.
JavaScript 1.1
Returns the primitive value of the Date
object.
valueOf()
function
Introduced in JavaScript 1.1, a Function object is created with the Function constructor.
Functions can be defined in a variety of ways. You can create a function using the following
standard function statement:
function functionName() {
// code here
}
Search WWH ::




Custom Search