Companion

Holds constants.

Properties

Link copied to clipboard
const val FORMAT: String

The canonical format by which Timestamps are represented.

Link copied to clipboard
val FORMATTER: DateTimeFormatter

Formatter for the FORMAT.

Link copied to clipboard
const val NOW: String

The special Timestamp.value that always refers to the current moment in time.

Functions

Link copied to clipboard
fun fromEpochMilli(epochMilli: Long): Timestamp

Returns a Timestamp that is set at the given epochMilli.