orbit-util / orbit.util.time / Timestamp

Timestamp

data class Timestamp

Constructors

<init>

Timestamp(seconds: Long, nanos: Int)

Properties

nanos

val nanos: Int

seconds

val seconds: Long

Functions

compareTo

operator fun compareTo(timestamp: Timestamp): Int

isAfter

fun isAfter(time: Instant): Boolean

isExactly

fun isExactly(time: Instant): Boolean

Companion Object Functions

now

fun now(): Timestamp

Extension Functions

toInstant

fun Timestamp.toInstant(): Instant!