Constructors
Accessors
calendar
- get calendar(): Calendar
date
- get date(): Date
dayOfMonth
- get dayOfMonth(): number
Returns number
dayOfWeek
- get dayOfWeek(): IsoWeekday
dayOfYear
- get dayOfYear(): number
Returns number
daysInMonth
- get daysInMonth(): number
Returns number
daysInYear
- get daysInYear(): number
Returns number
era
- get era(): string
Returns string
extendedYear
- get extendedYear(): number
Returns number
ffiValue
- get ffiValue(): number
Returns number
hour
- get hour(): number
Returns number
minute
- get minute(): number
Returns number
monthCode
- get monthCode(): string
Returns string
monthIsLeap
- get monthIsLeap(): boolean
Returns boolean
monthNumber
- get monthNumber(): number
Returns number
monthsInYear
- get monthsInYear(): number
Returns number
nanosecond
- get nanosecond(): number
Returns number
ordinalMonth
- get ordinalMonth(): number
Returns number
second
- get second(): number
Returns number
time
- get time(): Time
yearInEra
- get yearInEra(): number
Returns number
Methods
toCalendar
- toCalendar(calendar): DateTime
weekOfMonth
- weekOfMonth(firstWeekday): number
Returns number
weekOfYear
- weekOfYear(calculator): WeekOf
Static
fromCodesInCalendar
- fromCodesInCalendar(eraCode, year, monthCode, day, hour, minute, second, nanosecond, calendar): DateTime
Parameters
- eraCode: string
- year: number
- monthCode: string
- day: number
- hour: number
- minute: number
- second: number
- nanosecond: number
- calendar: Calendar
Static
fromDateAndTime
- fromDateAndTime(date, time): DateTime
Static
fromIsoInCalendar
- fromIsoInCalendar(year, month, day, hour, minute, second, nanosecond, calendar): DateTime
Parameters
- year: number
- month: number
- day: number
- hour: number
- minute: number
- second: number
- nanosecond: number
- calendar: Calendar
Static
fromString
- fromString(v): DateTime
An ICU4X DateTime object capable of containing a date and time for any calendar.
See the Rust documentation for
DateTime
for more information.