Interface JSDateFunctions

    • Method Detail

      • 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:
        Date
      • 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:
        Date
      • toLocaleString

        JSString toLocaleString()
        function toLocaleString() convert a Date to a locally formatted string.
        Specified by:
        toLocaleString in interface JSObjectFunctions
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
        See Also:
        Date
      • 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:
        Date
      • 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:
        Date
      • valueOf

        JSObject valueOf()
        function valueOf() convert a Date to millisecond representation.
        Specified by:
        valueOf in interface JSObjectFunctions
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
        See Also:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • 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:
        Date
      • setTime

        JSNumber setTime​(JSNumber value)
        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:
        Date
      • setMilliseconds

        JSNumber setMilliseconds​(JSNumber value)
        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:
        Date
      • setUTCMilliseconds

        JSNumber setUTCMilliseconds​(JSNumber ms)
        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:
        Date
      • setSeconds

        JSNumber setSeconds​(JSNumber sec,
                            JSNumber ms)
        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:
        Date
      • setUTCSeconds

        JSNumber setUTCSeconds​(JSNumber sec,
                               JSNumber ms)
        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:
        Date
      • setMinutes

        JSNumber setMinutes​(JSNumber min,
                            JSNumber sec,
                            JSNumber ms)
        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:
        Date
      • setUTCMinute

        JSNumber setUTCMinute​(JSNumber min,
                              JSNumber sec,
                              JSNumber ms)
        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:
        Date
      • setHours

        JSNumber setHours​(JSNumber hour,
                          JSNumber min,
                          JSNumber sec,
                          JSNumber ms)
        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:
        Date
      • setUTCHours

        JSNumber 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).
        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:
        Date
      • setDate

        JSNumber setDate​(JSNumber date)
        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:
        Date
      • setUTCDate

        JSNumber setUTCDate​(JSNumber date)
        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:
        Date
      • setMonth

        JSNumber setMonth​(JSNumber month,
                          JSNumber date)
        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:
        Date
      • setUTCMonth

        JSNumber setUTCMonth​(JSNumber month,
                             JSNumber date)
        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:
        Date
      • setFullYear

        JSNumber setFullYear​(JSNumber year,
                             JSNumber month,
                             JSNumber date)
        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:
        Date
      • setUTCFullYear

        JSNumber setUTCFullYear​(JSNumber year,
                                JSNumber month,
                                JSNumber date)
        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:
        Date
      • 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:
        Date