EpochTime
class EpochTime
Fields
Name | Description |
---|---|
val timeSinceEpochInMs: Long
|
Number of milliseconds that have elapsed since 00:00:00, 1 January 1970 UTC |
Constructors
<init>
constructor(timeSinceEpochInMs: Long)
A fixed moment in time with a specified baseline and precision.
Parameters
Name | Description |
---|---|
timeSinceEpochInMs: Long
|
Methods
compareTo
fun compareTo(other: EpochTime): Int
Compare two EpochTime objects
Parameters
Name | Description |
---|---|
other: EpochTime
|
ReturnValue
Name | Description |
---|---|
Int
|
minus
operator fun minus(et: EpochTime): EpochTime
Subtracts two EpochTime objects
Parameters
Name | Description |
---|---|
et: EpochTime
|
ReturnValue
Name | Description |
---|---|
EpochTime
|
minus
operator fun minus(timeStampMs: Long): EpochTime
Subtracts an EpochTime object with a timeStamp in Ms
Parameters
Name | Description |
---|---|
timeStampMs: Long
|
ReturnValue
Name | Description |
---|---|
EpochTime
|
A fixed moment in time with a specified baseline and precision.