PlainDateTime
open 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: Calendar = definedExternally) : HasArithmeticOperations<PlainDateTime, PlainDateTimeLike, DateTimeUnit<*>> , Roundable<PlainDateTime, DateTimeUnit<*>> , Localizable<DateTimeFormatOptions> (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: Calendar = definedExternally)
Properties
Functions
Link copied to clipboard
open external fun add(duration: Duration, options: ArithmeticOptions = definedExternally): PlainDateTime
open external fun add(duration: DurationLike, options: ArithmeticOptions = definedExternally): PlainDateTime
open external fun add(duration: String, options: ArithmeticOptions = definedExternally): PlainDateTime
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external fun since(other: PlainDateTimeLike, options: DifferenceOptions<DateTimeUnit<*>>): Duration
open external fun since(other: PlainDateTime, options: DifferenceOptions<DateTimeUnit<*>>): Duration
Link copied to clipboard
open external fun subtract(duration: Duration, options: ArithmeticOptions = definedExternally): PlainDateTime
open external fun subtract(duration: DurationLike, options: ArithmeticOptions = definedExternally): PlainDateTime
open external fun subtract(duration: String, options: ArithmeticOptions = definedExternally): PlainDateTime
Link copied to clipboard
Returns a value as a string value appropriate to the host environment's current locale.
open external fun toLocaleString(locales: UnicodeBCP47LocaleIdentifier, options: DateTimeFormatOptions = definedExternally): String
Converts a value to a string by using the current or specified locale.
open external fun toLocaleString(locales: ReadonlyArray<UnicodeBCP47LocaleIdentifier>, options: DateTimeFormatOptions = definedExternally): String
open external fun toLocaleString(locales: ReadonlyArray<Locale>, options: DateTimeFormatOptions = definedExternally): String
open external fun toLocaleString(locales: Locale, options: DateTimeFormatOptions = definedExternally): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun toZonedDateTime(tzLike: TimeZone, options: ToInstantOptions = definedExternally): ZonedDateTime
Link copied to clipboard
open external fun until(other: PlainDateTimeLike, options: DifferenceOptions<DateTimeUnit<*>>): Duration
open external fun until(other: PlainDateTime, options: DifferenceOptions<DateTimeUnit<*>>): Duration
Link copied to clipboard
external fun with(dateTimeLike: PlainDateTimeLike, options: AssignmentOptions = definedExternally): PlainDateTime
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard