vexi.js.ECMADate - ECMADate Object

The standard ECMA (or JS) date object.

Properties

Property Type Description

toGMTString

Deprecated - use toUTCString()

Throws an exception

Methods

Method Returns Description

getDate()

Number

Returns the day of the month (1-31)

getDay()

Number

Returns the day of the week (0-6)

getFullYear()

Number

Returns the year

getHours()

Number

Returns the hour (0-23)

getMilliseconds()

Number

Returns the milliseconds (0-999)

getMinutes()

Number

Returns the minutes (0-59)

getMonth()

Number

Returns the month (0-11)

getSeconds()

Number

Returns the seconds (0-59)

getTime()

String

Returns the number of milliseconds since midnight Jan 1, 1970

getTimezoneOffset()

Number

Returns the difference, in minutes, between GMT and local time

getYear()

Number

Deprecated - use getFullYear()

Returns the years since 1900

getUTCDate()

Number

Returns the day of the month (1-31) according to universal time

getUTCDay()

Number

Returns the day of the week (0-6) according to universal time

getUTCFullYear()

Number

Returns the year according to universal time

getUTCHours()

Number

Returns the hour (0-23) according to universal time

getUTCMilliseconds()

Number

Returns the milliseconds (0-999) according to universal time

getUTCMinutes()

Number

Returns the minutes (0-59) according to universal time

getUTCMonth()

Number

Returns the month (0-11) according to universal time

getUTCSeconds()

Number

Returns the seconds (0-59) according to universal time

setDate()

Number

Sets the day of the month (1-31), and returns the date as milliseconds

setFullYear(year[, month, date])

Number

Sets the year, and returns the date as milliseconds

setHours(hours[, mins, secs, ms])

Number

Sets the hour (0-23), and returns the date as milliseconds

setMilliseconds(ms)

Number

Sets the milliseconds (0-999), and returns the date as milliseconds

setMinutes(mins[, secs, ms])

Number

Set the minutes (0-59), and returns the date as milliseconds

setMonth(month[, date])

Number

Sets the month (0-11), and returns the date as milliseconds

setSeconds(secs[, ms])

Number

Sets the seconds (0-59), and returns the date as milliseconds

setTime(ms)

Number

Sets a date and time by adding the specified ‘ms’ milliseconds to midnight January 1, 1970

setYear(year)

Number

Deprecated - use setFullYear()

Sets the year as an offset of 1900, and returns the date as milliseconds

setUTCDate(date)

Number

Sets the day of the month (1-31) according to universal time, and returns the date as milliseconds

setUTCFullYear(year[, month, date])

Number

Sets the year according to universal time, and returns the date as milliseconds

setUTCMilliseconds(ms)

Number

Sets the milliseconds (0-999) according to universal time, and returns the date as milliseconds

setUTCSeconds(secs[, ms])

Number

Sets the seconds (0-59) according to universal time, and returns the date as milliseconds

setUTCMinutes(mins[, secs, ms])

Number

Set the minutes (0-59) according to universal time, and returns the date as milliseconds

setUTCHours(hours[, mins, secs, ms])

Number

Sets the hour (0-23) according to universal time, and returns the date as milliseconds

setUTCMonth(month[, date])

Number

Sets the month (0-11)) according to universal time, and returns the date as milliseconds

toDateString()

String

Returns a string representing the date portion of the Date object

toLocaleString()

String

Returns a string representing the Date object, using locale conventions

toLocaleTimeString()

String

Returns a string representing the time portion of the Date object, using locale conventions

toLocaleDateString()

String

Returns a string representing the date portion of the Date object, using locale conventions

toString()

String

Returns a string representing the Date object

toTimeString()

String

Returns a string representing the time portion of the Date object

toUTCString()

String

Returns a string representing the Date object according to universal time

valueOf()

String

Returns the primitive value of the Date object

 


Copyright © 2011 The Vexi Project (vexi.sourceforge.net)