Date Time Period
A difference between two instants, decomposed into date and time components.
The date components are: years, months, days.
The time components are: hours, minutes, seconds, nanoseconds.
A DateTimePeriod
can be constructed using the same-named constructor function, parsed from a string, or returned as the result of instant arithmetic operations (see Instant.periodUntil). All these functions can return a DatePeriod value, which is a subtype of DateTimePeriod
, a special case that only stores date components, if all time components of the result happen to be zero.
Types
Functions
Properties
Inheritors
Extensions
Link copied to clipboard
Adds two DateTimePeriod instances.