Class Date

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

See the Rust documentation for Date for more information.

Constructors

Accessors

  • 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 monthCode(): string
  • Returns string

  • get monthIsLeap(): boolean
  • Returns boolean

  • get monthNumber(): number
  • Returns number

  • get monthsInYear(): number
  • Returns number

  • get ordinalMonth(): number
  • Returns number

  • get yearInEra(): number
  • Returns number

Methods

  • Parameters

    Returns Date

  • Parameters

    Returns number

  • Parameters

    • eraCode: string
    • year: number
    • monthCode: string
    • day: number
    • calendar: Calendar

    Returns Date

  • Parameters

    • year: number
    • month: number
    • day: number
    • calendar: Calendar

    Returns Date

  • Parameters

    • v: string

    Returns Date