class Temporal.PlainDateTime
unstable
A Temporal.PlainDateTime
represents a calendar date and wall-clock time, with
a precision in nanoseconds, and without any time zone. Of the Temporal
classes carrying human-readable time information, it is the most general
and complete one. Temporal.PlainDate
, Temporal.PlainTime
, Temporal.PlainYearMonth
,
and Temporal.PlainMonthDay
all carry less information and should be used when
complete information is not required.
See https://tc39.es/proposal-temporal/docs/datetime.html for more details.
Constructors Jump to heading
new
Jump to headingPlainDateTime(isoYear: number,isoMonth: number,isoDay: number,hour?: number,minute?: number,second?: number,millisecond?: number,microsecond?: number,nanosecond?: number,calendar?: string,)
Properties Jump to heading
readonly
Jump to heading[Symbol.toStringTag]: "Temporal.PlainDateTime"
readonly
Jump to headingcalendarId: string
readonly
Jump to headingday: number
readonly
Jump to headingdayOfWeek: number
readonly
Jump to headingdayOfYear: number
readonly
Jump to headingdaysInMonth: number
readonly
Jump to headingdaysInWeek: number
readonly
Jump to headingdaysInYear: number
readonly
Jump to headingera: string | undefined
readonly
Jump to headingeraYear: number | undefined
readonly
Jump to headinghour: number
readonly
Jump to headinginLeapYear: boolean
readonly
Jump to headingmicrosecond: number
readonly
Jump to headingmillisecond: number
readonly
Jump to headingminute: number
readonly
Jump to headingmonth: number
readonly
Jump to headingmonthCode: string
readonly
Jump to headingmonthsInYear: number
readonly
Jump to headingnanosecond: number
readonly
Jump to headingsecond: number
readonly
Jump to headingweekOfYear: number | undefined
readonly
Jump to headingyear: number
readonly
Jump to headingyearOfWeek: number | undefined
Methods Jump to heading
Jump to headingadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDateTime
Jump to headingequals(other: ): boolean
Jump to headinground(roundTo: RoundTo<"day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">): Temporal.PlainDateTime
Jump to headingsince(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">,): Temporal.Duration
Jump to headingsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDateTime
Jump to headingtoJSON(): string
Jump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): string
Jump to headingtoString(options?: CalendarTypeToStringOptions): string
Jump to headingtoZonedDateTime(tzLike: TimeZoneLike,options?: ToInstantOptions,): Temporal.ZonedDateTime
Jump to headinguntil(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">,): Temporal.Duration
Jump to headingvalueOf(): never
Jump to headingwith(dateTimeLike: PlainDateTimeLike,options?: AssignmentOptions,): Temporal.PlainDateTime
Jump to headingwithPlainTime(timeLike?: ): Temporal.PlainDateTime
Static Methods Jump to heading
Jump to headingcompare(one: ,two: ,): ComparisonResult
Jump to headingfrom(item: ,options?: AssignmentOptions,): Temporal.PlainDateTime