Interface JSDateFunctions

All Superinterfaces:
JSObjectFunctions
All Known Subinterfaces:
JS5DateFunctions
All Known Implementing Classes:
JS5Date, JSDate

public interface JSDateFunctions extends JSObjectFunctions
  • 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:
      toLocaleString in interface JSObjectFunctions
      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:
      valueOf in interface JSObjectFunctions
      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

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