Interface JSDateFunctions
- All Superinterfaces:
JSObjectFunctions
- All Known Subinterfaces:
JS5DateFunctions
-
Method Summary
Modifier and TypeMethodDescriptiongetDate()function getDate() return the day-of-month field of a Date.getDay()function getDay() return the day-of-week field of a Date.function getFullYear() return the year field of a Date.getHours()function getHours() return the hour field of a Date.function getMilliseconds() return the millisecond field of a Date.function getMinutes() return the minute field of a Date.getMonth()function getMonth() return the month field of a Date.function getSeconds() return the second field of a Date.getTime()function getTime() return a Date in milliseconds.function getTimezoneOffset() determine the offset from GMT.function getUTCDate() return the day-of-month field of a Date (universal time).function getUTCDay() return the day-of-week field of a Date (universal time).function getUTCFullYear() return the year field of a Date (universal time).function getUTCHours() return the hour field of a Date (universal time).function getUTCMilliseconds() return the millisecond field of a Date (universal time).function getUTCMinutes() return the minute field of a Date (universal time).function getUTCMonth() return the month field of a Date (universal time).function getUTCSeconds() return the second field of a Date (universal time).function setDate(date) set the day of month field of a Date.setFullYear(JSNumber year, JSNumber month, JSNumber date) function setFullYear(year,month,date) set the year, month, day field of a Date.function setHours(hour,min,sec,ms) set the hours, minutes, seconds and milliseconds field of a Date.setMilliseconds(JSNumber value) function setMilliseconds(value) set the milliseconds field of a Date.setMinutes(JSNumber min, JSNumber sec, JSNumber ms) function setMinutes(min,sec,ms) set the minutes, seconds and milliseconds field of a Date.function setMonth(month,date) set the month, day field of a Date.setSeconds(JSNumber sec, JSNumber ms) function setSeconds(sec,ms) set the seconds and milliseconds field of a Date.function setTime(value) set a Date in milliseconds.setUTCDate(JSNumber date) function setUTCDate(date) set the day of month field of a Date (universal time).setUTCFullYear(JSNumber year, JSNumber month, JSNumber date) function setUTCFullYear(year,month,date) set the year, month, day field of a Date (Universal time).setUTCHours(JSNumber hour, JSNumber min, JSNumber sec, JSNumber ms) function setUTCHours(hour,min,sec,ms) set the hours, minutes, seconds and milliseconds field of a Date (universal time).function setUTCMilliseconds(ms) set the milliseconds field of a Date (universal time).setUTCMinute(JSNumber min, JSNumber sec, JSNumber ms) function setUTCMinute(min,sec,ms) set the minutes, seconds and milliseconds field of a Date (universal time).setUTCMonth(JSNumber month, JSNumber date) function setUTCMonth(month,date) set the month, day field of a Date (Universal time).setUTCSeconds(JSNumber sec, JSNumber ms) function setUTCSeconds(sec,ms) set the seconds and milliseconds field of a Date (universal time).function toDateString() return the date portion of a Date as a string.function toLocaleDateString() return the date portion of a Date as a locally formatted string.function toLocaleString() convert a Date to a locally formatted string.function toLocaleTimeString() return the time portion of a date as a locally formatted string.function toTimeString() return the time portion of Date as a string.function toUTCString() convert Date to a string (universal time).valueOf()function valueOf() convert a Date to millisecond representation.Methods inherited from interface org.fife.rsta.ac.js.ecma.api.ecma3.functions.JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toString
-
Method Details
-
toDateString
JSString toDateString()function toDateString() return the date portion of a Date as a string.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
toTimeString
JSString toTimeString()function toTimeString() return the time portion of Date as a string.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
toLocaleString
JSString toLocaleString()function toLocaleString() convert a Date to a locally formatted string.- Specified by:
toLocaleStringin interfaceJSObjectFunctions- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
toLocaleDateString
JSString toLocaleDateString()function toLocaleDateString() return the date portion of a Date as a locally formatted string.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
toLocaleTimeString
JSString toLocaleTimeString()function toLocaleTimeString() return the time portion of a date as a locally formatted string.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
valueOf
JSObject valueOf()function valueOf() convert a Date to millisecond representation.- Specified by:
valueOfin interfaceJSObjectFunctions- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getFullYear
JSNumber getFullYear()function getFullYear() return the year field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getTime
JSNumber getTime()function getTime() return a Date in milliseconds.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCFullYear
JSNumber getUTCFullYear()function getUTCFullYear() return the year field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getMonth
JSNumber getMonth()function getMonth() return the month field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCMonth
JSNumber getUTCMonth()function getUTCMonth() return the month field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getDate
JSNumber getDate()function getDate() return the day-of-month field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCDate
JSNumber getUTCDate()function getUTCDate() return the day-of-month field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getDay
JSNumber getDay()function getDay() return the day-of-week field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCDay
JSNumber getUTCDay()function getUTCDay() return the day-of-week field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getHours
JSNumber getHours()function getHours() return the hour field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCHours
JSNumber getUTCHours()function getUTCHours() return the hour field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getMinutes
JSNumber getMinutes()function getMinutes() return the minute field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCMinutes
JSNumber getUTCMinutes()function getUTCMinutes() return the minute field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getSeconds
JSNumber getSeconds()function getSeconds() return the second field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCSeconds
JSNumber getUTCSeconds()function getUTCSeconds() return the second field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getMilliseconds
JSNumber getMilliseconds()function getMilliseconds() return the millisecond field of a Date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getUTCMilliseconds
JSNumber getUTCMilliseconds()function getUTCMilliseconds() return the millisecond field of a Date (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
getTimezoneOffset
JSNumber getTimezoneOffset()function getTimezoneOffset() determine the offset from GMT.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setTime
function setTime(value) set a Date in milliseconds.- Parameters:
value- The number of milliseconds between desired date and time and midnight GMT on 1/1/1970.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setMilliseconds
function setMilliseconds(value) set the milliseconds field of a Date.- Parameters:
value- The milliseconds field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCMilliseconds
function setUTCMilliseconds(ms) set the milliseconds field of a Date (universal time).- Parameters:
ms- The millisecond field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setSeconds
function setSeconds(sec,ms) set the seconds and milliseconds field of a Date.- Parameters:
sec- The second field expressed in local time, to be set in date.ms- Optional millisecond field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCSeconds
function setUTCSeconds(sec,ms) set the seconds and milliseconds field of a Date (universal time).- Parameters:
sec- The second field expressed in universal time, to be set in date.ms- Optional millisecond field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setMinutes
function setMinutes(min,sec,ms) set the minutes, seconds and milliseconds field of a Date.- Parameters:
min- The minute field expressed in local time, to be set in date.sec- Optional second field expressed in local time, to be set in date.ms- Optional millisecond field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCMinute
function setUTCMinute(min,sec,ms) set the minutes, seconds and milliseconds field of a Date (universal time).- Parameters:
min- The minute field expressed in universal time, to be set in date.sec- Optional second field expressed in universal time, to be set in date.ms- Optional millisecond field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setHours
function setHours(hour,min,sec,ms) set the hours, minutes, seconds and milliseconds field of a Date.- Parameters:
hour- The hour field expressed in local time, to be set in date.min- Optional minute field expressed in local time, to be set in date.sec- Optional second field expressed in local time, to be set in date.ms- Optional millisecond field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCHours
function setUTCHours(hour,min,sec,ms) set the hours, minutes, seconds and milliseconds field of a Date (universal time).- Parameters:
hour- The hour field expressed in universal time, to be set in date.min- Optional minute field expressed in universal time, to be set in date.sec- Optional second field expressed in universal time, to be set in date.ms- Optional millisecond field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setDate
function setDate(date) set the day of month field of a Date.- Parameters:
date- The day of the month field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCDate
function setUTCDate(date) set the day of month field of a Date (universal time).- Parameters:
date- The day of the month field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setMonth
function setMonth(month,date) set the month, day field of a Date.- Parameters:
month- An integer between 0 (January) and 11 (December) representing the month field expressed in local time, to be set in date.date- Optional day of the month field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCMonth
function setUTCMonth(month,date) set the month, day field of a Date (Universal time).- Parameters:
month- An integer between 0 (January) and 11 (December) representing the month field expressed in universal time, to be set in date.date- Optional day of the month field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setFullYear
function setFullYear(year,month,date) set the year, month, day field of a Date.- Parameters:
year- The year field expressed in local time, to be set in date.month- Optional integer between 0 (January) and 11 (December) representing the month field expressed in local time, to be set in date.date- Optional day of the month field expressed in local time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
setUTCFullYear
function setUTCFullYear(year,month,date) set the year, month, day field of a Date (Universal time).- Parameters:
year- The year field expressed in universal time, to be set in date.month- Optional integer between 0 (January) and 11 (December) representing the month field expressed in universal time, to be set in date.date- Optional day of the month field expressed in universal time, to be set in date.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
toUTCString
JSString toUTCString()function toUTCString() convert Date to a string (universal time).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-