Temporal.PlainDateTime

interface

interface Temporal.PlainDateTime

variable

var Temporal.PlainDateTime: PlainDateTimeConstructor

Properties

calendarId

readonly calendarId: string

era

readonly era: string | undefined

eraYear

readonly eraYear: number | undefined

year

readonly year: number

month

readonly month: number

monthCode

readonly monthCode: string

day

readonly day: number

hour

readonly hour: number

minute

readonly minute: number

second

readonly second: number

millisecond

readonly millisecond: number

microsecond

readonly microsecond: number

nanosecond

readonly nanosecond: number

dayOfWeek

readonly dayOfWeek: number

dayOfYear

readonly dayOfYear: number

weekOfYear

readonly weekOfYear: number | undefined

yearOfWeek

readonly yearOfWeek: number | undefined

daysInWeek

readonly daysInWeek: number

daysInMonth

readonly daysInMonth: number

daysInYear

readonly daysInYear: number

monthsInYear

readonly monthsInYear: number

inLeapYear

readonly inLeapYear: boolean

[Symbol.toStringTag]

readonly [Symbol.toStringTag]: "Temporal.PlainDateTime"

Methods

with

with(dateTimeLike: PartialTemporalLike<DateTimeLikeObject>, options?: OverflowOptions): PlainDateTime

withPlainTime

withPlainTime(plainTime?: PlainTimeLike): PlainDateTime

withCalendar

withCalendar(calendar: CalendarLike): PlainDateTime

add

add(duration: DurationLike, options?: OverflowOptions): PlainDateTime

subtract

subtract(duration: DurationLike, options?: OverflowOptions): PlainDateTime

until

until(other: PlainDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration

since

since(other: PlainDateTimeLike, options?: RoundingOptionsWithLargestUnit<DateUnit | TimeUnit>): Duration

round

round(roundTo: PluralizeUnit<"day" | TimeUnit>): PlainDateTime
round(roundTo: RoundingOptions<"day" | TimeUnit>): PlainDateTime

equals

equals(other: PlainDateTimeLike): boolean

toString

toString(options?: PlainDateTimeToStringOptions): string

toLocaleString

toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string

toJSON

toJSON(): string

valueOf

valueOf(): never

toZonedDateTime

toZonedDateTime(timeZone: TimeZoneLike, options?: DisambiguationOptions): ZonedDateTime

toPlainDate

toPlainDate(): PlainDate

toPlainTime

toPlainTime(): PlainTime