trait DateTime extends Object

Annotations
@JSType() @native()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateTime
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def toRFC2822(): String

Concrete Value Members

  1. val day: Int
  2. val daysInMonth: Int
  3. val daysInYear: Int
  4. def diff(other: DateTime, unit: UndefOr[|[DurationUnit, Array[DurationUnit]]] = js.undefined, options: UndefOr[DiffOptions] = js.undefined): Duration
  5. def diffNow(unit: UndefOr[|[DurationUnit, Array[DurationUnit]]] = js.undefined, options: UndefOr[DiffOptions] = js.undefined): Duration
  6. def endOf(part: DurationUnit): DateTime
  7. def equals(that: DateTime): Boolean
  8. def get(unit: String): Int
  9. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  10. def hasSame(that: DateTime, unit: String): Boolean
  11. val invalidExplanation: |[String, Null]
  12. val invalidReason: |[String, Null]
  13. val isInDST: Boolean
  14. val isInLeapYear: Boolean
  15. val isOffsetFixed: Boolean
  16. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  17. val isValid: Boolean
  18. val locale: String
  19. val millisecond: Int
  20. def minus(dur: |[Duration, DurationInit]): DateTime
  21. val month: Int
  22. val monthLong: String
  23. val monthShort: String
  24. val numberingSystem: String
  25. val offset: Int
  26. val offsetNameLong: String
  27. val offsetNameShort: String
  28. val ordinal: Int
  29. val outputCalendar: String
  30. def plus(dur: |[Duration, DurationInit]): DateTime
  31. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  32. val quarter: Int
  33. val second: Int
  34. def set(parts: DateTimeInit): DateTime
  35. def setLocale(loc: String): DateTime
  36. def setZone(zone: String): DateTime
  37. def startOf(part: DurationUnit): DateTime
  38. def toBSON(): Date
  39. def toFormat(fmt: String): String
  40. def toHTTP(): String
  41. def toISO(): String
  42. def toISODate(): String
  43. def toISOTime(): String
  44. def toISOWeekDate(): String
  45. def toJSDate(): Date
  46. def toJSON(): String
  47. def toLocal(): DateTime
  48. def toLocaleString(f: UndefOr[LocaleInfo] = js.undefined): String
  49. def toLocaleString(): String
    Definition Classes
    Object
  50. def toMillis(): Double
  51. def toObject(): DateTimeInit
  52. def toRelative(): String
  53. def toRelativeCalendar(): String
  54. def toSQL(options: UndefOr[DateTimeOptions] = js.undefined): String
  55. def toSQLDate(): String
  56. def toSQLTime(): String
  57. def toSeconds(): Double
  58. def toUTC(offset: Int, options: UndefOr[DateTimeOptions] = js.undefined): DateTime
  59. def toUTC(): DateTime
  60. def until(other: DateTime): Interval
  61. def valueOf(): Any
    Definition Classes
    Object
  62. val weekNumber: Int
  63. val weekYear: Int
  64. val weekday: Int
  65. val weekdayLong: String
  66. val weekdayShort: String
  67. val weeksInWeekYear: Int
  68. val year: Int
  69. val zone: Zone
  70. val zoneName: String