struct DateTimePeriod
source · line 9public
public struct DateTimePeriod(val date: DatePeriod = DatePeriod(), val time: Duration = Duration.ZERO) : Equals<DateTimePeriod>, Hash
- Supertype
Equals<DateTimePeriod> - Supertype
Hash
A calendar DatePeriod followed by a fixed elapsed Duration. Applying it to a local date-time applies the date component first.
field time
source · line 9public
val time: Duration = Duration.ZERO
field date
source · line 9public
val date: DatePeriod = DatePeriod()
function hash
source · line 18public
public override fun hash(): Long
- Overrides
hash
Computes a hash consistent with component equality.
function equals
source · line 14public
public override operator fun equals(other: DateTimePeriod): Boolean
- Overrides
equals
Compares the stored value components for equality.
parameter other
source · line 14public
other: DateTimePeriod
constructor constructor
source · line 9public
constructor(val date: DatePeriod = DatePeriod(), val time: Duration = Duration.ZERO)
parameter date
source · line 9public
val date: DatePeriod = DatePeriod()
parameter time
source · line 9public
val time: Duration = Duration.ZERO