Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DateTime

Hierarchy

  • DateTime

Implements

Index

Constructors

constructor

Methods

compareTo

day

  • day(): number
  • day(day: number, hour?: undefined | number, minute?: undefined | number, second?: undefined | number, millisecond?: undefined | number): DateTime

display

equals

  • equals(that: unknown): boolean

hashCode

  • hashCode(): number

hour

  • hour(): number
  • hour(hour: number, minute?: undefined | number, second?: undefined | number, millisecond?: undefined | number): DateTime

millisecond

  • millisecond(): number
  • millisecond(millisecond: number): DateTime

minute

  • minute(): number
  • minute(minute: number, second?: undefined | number, millisecond?: undefined | number): DateTime

month

  • month(): number
  • month(month: number, day?: undefined | number, hour?: undefined | number, minute?: undefined | number, second?: undefined | number, millisecond?: undefined | number): DateTime

second

  • second(): number
  • second(second: number, millisecond?: undefined | number): DateTime

time

  • time(): number
  • time(time: number): DateTime

toDate

  • toDate(): Date

toString

valueOf

  • valueOf(): number

weekday

  • weekday(): number

year

  • year(): number
  • year(year: number, month?: undefined | number, day?: undefined | number, hour?: undefined | number, minute?: undefined | number, second?: undefined | number, millisecond?: undefined | number): DateTime

zone

Static current

Static form

Static from

Static fromAny

Static fromValue

  • fromValue(value: Value): DateTime | undefined

Static parse

Static time

Static zone