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: stringreadonly
Jump to headingday: numberreadonly
Jump to headingdayOfWeek: numberreadonly
Jump to headingdayOfYear: numberreadonly
Jump to headingdaysInMonth: numberreadonly
Jump to headingdaysInWeek: numberreadonly
Jump to headingdaysInYear: numberreadonly
Jump to headingera: string | undefinedreadonly
Jump to headingeraYear: number | undefinedreadonly
Jump to headinghour: numberreadonly
Jump to headinginLeapYear: booleanreadonly
Jump to headingmicrosecond: numberreadonly
Jump to headingmillisecond: numberreadonly
Jump to headingminute: numberreadonly
Jump to headingmonth: numberreadonly
Jump to headingmonthCode: stringreadonly
Jump to headingmonthsInYear: numberreadonly
Jump to headingnanosecond: numberreadonly
Jump to headingsecond: numberreadonly
Jump to headingweekOfYear: number | undefinedreadonly
Jump to headingyear: numberreadonly
Jump to headingyearOfWeek: number | undefinedMethods Jump to heading
Jump to headingadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDateTimeJump to headingequals(other: ): booleanJump to headinground(roundTo: RoundTo<"day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">): Temporal.PlainDateTimeJump to headingsince(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">,): Temporal.DurationJump to headingsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDateTimeJump to headingtoJSON(): stringJump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): stringJump to headingtoString(options?: CalendarTypeToStringOptions): stringJump to headingtoZonedDateTime(tzLike: TimeZoneLike,options?: ToInstantOptions,): Temporal.ZonedDateTimeJump to headinguntil(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">,): Temporal.DurationJump to headingvalueOf(): neverJump to headingwith(dateTimeLike: PlainDateTimeLike,options?: AssignmentOptions,): Temporal.PlainDateTimeJump to headingwithPlainTime(timeLike?: ): Temporal.PlainDateTimeStatic Methods Jump to heading
Jump to headingcompare(one: ,two: ,): ComparisonResultJump to headingfrom(item: ,options?: AssignmentOptions,): Temporal.PlainDateTime