Class DateTime

An ICU4X DateTime object capable of containing a date and time for any calendar.

See the Rust documentation for DateTime for more information.

Constructors

Accessors

  • get date(): Date
  • Returns Date

  • get dayOfMonth(): number
  • Returns number

  • get dayOfYear(): number
  • Returns number

  • get daysInMonth(): number
  • Returns number

  • get daysInYear(): number
  • Returns number

  • get era(): string
  • Returns string

  • get extendedYear(): number
  • Returns number

  • get ffiValue(): number
  • Returns number

  • get hour(): number
  • Returns number

  • get minute(): number
  • Returns number

  • get monthCode(): string
  • Returns string

  • get monthIsLeap(): boolean
  • Returns boolean

  • get monthNumber(): number
  • Returns number

  • get monthsInYear(): number
  • Returns number

  • get nanosecond(): number
  • Returns number

  • get ordinalMonth(): number
  • Returns number

  • get second(): number
  • Returns number

  • get time(): Time
  • Returns Time

  • get yearInEra(): number
  • Returns number

Methods

  • Parameters

    Returns number

  • Parameters

    • eraCode: string
    • year: number
    • monthCode: string
    • day: number
    • hour: number
    • minute: number
    • second: number
    • nanosecond: number
    • calendar: Calendar

    Returns DateTime

  • Parameters

    • year: number
    • month: number
    • day: number
    • hour: number
    • minute: number
    • second: number
    • nanosecond: number
    • calendar: Calendar

    Returns DateTime

  • Parameters

    • v: string

    Returns DateTime