Packages

trait Date extends scala.scalajs.js.Object with StObject

Enables basic storage and retrieval of dates and times.

Annotations
@JSType() @native()
Source
Date.scala
Linear Supertypes
StObject, scala.scalajs.js.Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Date
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def getDate(): Double

    Gets the day-of-the-month, using local time.

  10. def getDay(): Double

    Gets the day of the week, using local time.

  11. def getFullYear(): Double

    Gets the year, using local time.

  12. def getHours(): Double

    Gets the hours in a date, using local time.

  13. def getMilliseconds(): Double

    Gets the milliseconds of a Date, using local time.

  14. def getMinutes(): Double

    Gets the minutes of a Date object, using local time.

  15. def getMonth(): Double

    Gets the month, using local time.

  16. def getSeconds(): Double

    Gets the seconds of a Date object, using local time.

  17. def getTime(): Double

    Gets the time value in milliseconds.

  18. def getTimezoneOffset(): Double

    Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC).

  19. def getUTCDate(): Double

    Gets the day-of-the-month, using Universal Coordinated Time (UTC).

  20. def getUTCDay(): Double

    Gets the day of the week using Universal Coordinated Time (UTC).

  21. def getUTCFullYear(): Double

    Gets the year using Universal Coordinated Time (UTC).

  22. def getUTCHours(): Double

    Gets the hours value in a Date object using Universal Coordinated Time (UTC).

  23. def getUTCMilliseconds(): Double

    Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).

  24. def getUTCMinutes(): Double

    Gets the minutes of a Date object using Universal Coordinated Time (UTC).

  25. def getUTCMonth(): Double

    Gets the month of a Date object using Universal Coordinated Time (UTC).

  26. def getUTCSeconds(): Double

    Gets the seconds of a Date object using Universal Coordinated Time (UTC).

  27. def hasOwnProperty(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  29. final def isInstanceOf[T0]: scala.Boolean
    Definition Classes
    Any
  30. def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
    Definition Classes
    Object
  31. final def ne(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  34. def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  35. def setDate(date: Double): Double

    Sets the numeric day-of-the-month value of the Date object using local time.

    Sets the numeric day-of-the-month value of the Date object using local time.

    date

    A numeric value equal to the day of the month.

  36. def setFullYear(year: Double, month: Unit, date: Double): Double
  37. def setFullYear(year: Double, month: Double, date: Double): Double
  38. def setFullYear(year: Double, month: Double): Double
  39. def setFullYear(year: Double): Double

    Sets the year of the Date object using local time.

    Sets the year of the Date object using local time.

    year

    A numeric value for the year.

  40. def setHours(hours: Double, min: Unit, sec: Unit, ms: Double): Double
  41. def setHours(hours: Double, min: Unit, sec: Double, ms: Double): Double
  42. def setHours(hours: Double, min: Unit, sec: Double): Double
  43. def setHours(hours: Double, min: Double, sec: Unit, ms: Double): Double
  44. def setHours(hours: Double, min: Double, sec: Double, ms: Double): Double
  45. def setHours(hours: Double, min: Double, sec: Double): Double
  46. def setHours(hours: Double, min: Double): Double
  47. def setHours(hours: Double): Double

    Sets the hour value in the Date object using local time.

    Sets the hour value in the Date object using local time.

    hours

    A numeric value equal to the hours value.

  48. def setMilliseconds(ms: Double): Double

    Sets the milliseconds value in the Date object using local time.

    Sets the milliseconds value in the Date object using local time.

    ms

    A numeric value equal to the millisecond value.

  49. def setMinutes(min: Double, sec: Unit, ms: Double): Double
  50. def setMinutes(min: Double, sec: Double, ms: Double): Double
  51. def setMinutes(min: Double, sec: Double): Double
  52. def setMinutes(min: Double): Double

    Sets the minutes value in the Date object using local time.

    Sets the minutes value in the Date object using local time.

    min

    A numeric value equal to the minutes value.

  53. def setMonth(month: Double, date: Double): Double
  54. def setMonth(month: Double): Double

    Sets the month value in the Date object using local time.

    Sets the month value in the Date object using local time.

    month

    A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.

  55. def setSeconds(sec: Double, ms: Double): Double
  56. def setSeconds(sec: Double): Double

    Sets the seconds value in the Date object using local time.

    Sets the seconds value in the Date object using local time.

    sec

    A numeric value equal to the seconds value.

  57. def setTime(time: Double): Double

    Sets the date and time value in the Date object.

    Sets the date and time value in the Date object.

    time

    A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.

  58. def setUTCDate(date: Double): Double

    Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).

    Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).

    date

    A numeric value equal to the day of the month.

  59. def setUTCFullYear(year: Double, month: Unit, date: Double): Double
  60. def setUTCFullYear(year: Double, month: Double, date: Double): Double
  61. def setUTCFullYear(year: Double, month: Double): Double
  62. def setUTCFullYear(year: Double): Double

    Sets the year value in the Date object using Universal Coordinated Time (UTC).

    Sets the year value in the Date object using Universal Coordinated Time (UTC).

    year

    A numeric value equal to the year.

  63. def setUTCHours(hours: Double, min: Unit, sec: Unit, ms: Double): Double
  64. def setUTCHours(hours: Double, min: Unit, sec: Double, ms: Double): Double
  65. def setUTCHours(hours: Double, min: Unit, sec: Double): Double
  66. def setUTCHours(hours: Double, min: Double, sec: Unit, ms: Double): Double
  67. def setUTCHours(hours: Double, min: Double, sec: Double, ms: Double): Double
  68. def setUTCHours(hours: Double, min: Double, sec: Double): Double
  69. def setUTCHours(hours: Double, min: Double): Double
  70. def setUTCHours(hours: Double): Double

    Sets the hours value in the Date object using Universal Coordinated Time (UTC).

    Sets the hours value in the Date object using Universal Coordinated Time (UTC).

    hours

    A numeric value equal to the hours value.

  71. def setUTCMilliseconds(ms: Double): Double

    Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).

    Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).

    ms

    A numeric value equal to the millisecond value.

  72. def setUTCMinutes(min: Double, sec: Unit, ms: Double): Double
  73. def setUTCMinutes(min: Double, sec: Double, ms: Double): Double
  74. def setUTCMinutes(min: Double, sec: Double): Double
  75. def setUTCMinutes(min: Double): Double

    Sets the minutes value in the Date object using Universal Coordinated Time (UTC).

    Sets the minutes value in the Date object using Universal Coordinated Time (UTC).

    min

    A numeric value equal to the minutes value.

  76. def setUTCMonth(month: Double, date: Double): Double
  77. def setUTCMonth(month: Double): Double

    Sets the month value in the Date object using Universal Coordinated Time (UTC).

    Sets the month value in the Date object using Universal Coordinated Time (UTC).

    month

    A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.

  78. def setUTCSeconds(sec: Double, ms: Double): Double
  79. def setUTCSeconds(sec: Double): Double

    Sets the seconds value in the Date object using Universal Coordinated Time (UTC).

    Sets the seconds value in the Date object using Universal Coordinated Time (UTC).

    sec

    A numeric value equal to the seconds value.

  80. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  81. def toDateString(): java.lang.String

    Returns a date as a string value.

  82. def toISOString(): java.lang.String

    Returns a date as a string value in ISO format.

  83. def toJSON(key: Any): java.lang.String
  84. def toJSON(): java.lang.String

    Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization.

  85. def toLocaleDateString(locales: Unit, options: DateTimeFormatOptions): java.lang.String
  86. def toLocaleDateString(locales: scala.scalajs.js.Array[java.lang.String], options: DateTimeFormatOptions): java.lang.String
  87. def toLocaleDateString(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
  88. def toLocaleDateString(locales: java.lang.String, options: DateTimeFormatOptions): java.lang.String
  89. def toLocaleDateString(locales: java.lang.String): java.lang.String
  90. def toLocaleDateString(): java.lang.String

    Returns a date as a string value appropriate to the host environment's current locale.

  91. def toLocaleString(locales: Unit, options: DateTimeFormatOptions): java.lang.String
  92. def toLocaleString(locales: scala.scalajs.js.Array[java.lang.String], options: DateTimeFormatOptions): java.lang.String
  93. def toLocaleString(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
  94. def toLocaleString(locales: java.lang.String, options: DateTimeFormatOptions): java.lang.String
  95. def toLocaleString(locales: java.lang.String): java.lang.String
  96. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  97. def toLocaleTimeString(locales: Unit, options: DateTimeFormatOptions): java.lang.String
  98. def toLocaleTimeString(locales: scala.scalajs.js.Array[java.lang.String], options: DateTimeFormatOptions): java.lang.String
  99. def toLocaleTimeString(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
  100. def toLocaleTimeString(locales: java.lang.String, options: DateTimeFormatOptions): java.lang.String
  101. def toLocaleTimeString(locales: java.lang.String): java.lang.String
  102. def toLocaleTimeString(): java.lang.String

    Returns a time as a string value appropriate to the host environment's current locale.

  103. val toPrimitive: Function1[default, java.lang.String] with Function1[string, java.lang.String] with Function1[number, Double] with Function1[java.lang.String, |[java.lang.String, Double]]

    Converts a Date object to a string or number.

    Converts a Date object to a string or number.

    Annotations
    @JSName(js.Symbol.toPrimitive)
    Exceptions thrown

    {TypeError} If 'hint' was given something other than "number", "string", or "default".

  104. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  105. def toTimeString(): java.lang.String

    Returns a time as a string value.

  106. def toUTCString(): java.lang.String

    Returns a date converted to a string using Universal Coordinated Time (UTC).

  107. def valueOf(): Any
    Definition Classes
    Object
  108. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  109. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  110. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from scala.scalajs.js.Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped