PlainDateTime
external class PlainDateTime(isoYear: Int, isoMonth: Int, isoDay: Int, hour: Int = definedExternally, minute: Int = definedExternally, second: Int = definedExternally, millisecond: Int = definedExternally, microsecond: Int = definedExternally, nanosecond: Int = definedExternally, calendar: CalendarLike = definedExternally) : HasArithmeticOperations<PlainDateTime, PlainDateTimeLike, DateTimeUnit<*>> , Roundable<PlainDateTime, DateTimeUnit<*>> , Localizable<DateTimeFormatOptions> , CalendarLike(source)
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
Link copied to clipboard
constructor(isoYear: Int, isoMonth: Int, isoDay: Int, hour: Int = definedExternally, minute: Int = definedExternally, second: Int = definedExternally, millisecond: Int = definedExternally, microsecond: Int = definedExternally, nanosecond: Int = definedExternally, calendar: CalendarLike = definedExternally)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun subtract(duration: Duration, options: ArithmeticOptions = definedExternally): PlainDateTime
open fun subtract(duration: DurationLike, options: ArithmeticOptions = definedExternally): PlainDateTime
Link copied to clipboard
Returns a value as a string value appropriate to the host environment's current locale.
open fun toLocaleString(locales: Locale, options: DateTimeFormatOptions = definedExternally): String
open fun toLocaleString(locales: ReadonlyArray<Locale>, options: DateTimeFormatOptions = definedExternally): String
open fun toLocaleString(locales: ReadonlyArray<UnicodeBCP47LocaleIdentifier>, options: DateTimeFormatOptions = definedExternally): String
open fun toLocaleString(locales: UnicodeBCP47LocaleIdentifier, options: DateTimeFormatOptions = definedExternally): String
Converts a value to a string by using the current or specified locale.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toZonedDateTime(tzLike: TimeZoneLike, options: ToInstantOptions = definedExternally): ZonedDateTime
Link copied to clipboard
Link copied to clipboard
fun with(dateTimeLike: PlainDateTimeLike, options: AssignmentOptions = definedExternally): PlainDateTime
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard