Timestamp

actual constructor(seconds: Long, nanoseconds: Int)(source)

Parameters

seconds

seconds since the Unix epoch, between -62135596800 and 253402300799 inclusive

nanoseconds

fraction of a second in nanoseconds, between 0 and 999999999 inclusive


actual constructor(time: Any)(source)

Deprecated (with error)

the java.util.Date and java.time.Instant constructors are JVM-only; use Timestamp(instant) with a kotlin.time.Instant, or Timestamp(seconds, nanoseconds)

Android/JVM only: the Timestamp(Date) and Timestamp(Instant) constructors; use Timestamp(kotlin.time.Instant) from common code.

expect constructor(seconds: Long, nanoseconds: Int)(source)

Parameters

seconds

seconds since the Unix epoch, between -62135596800 and 253402300799 inclusive

nanoseconds

fraction of a second in nanoseconds, between 0 and 999999999 inclusive


expect constructor(time: Any)(source)

Deprecated (with error)

the java.util.Date and java.time.Instant constructors are JVM-only; use Timestamp(instant) with a kotlin.time.Instant, or Timestamp(seconds, nanoseconds)

Android/JVM only: the Timestamp(Date) and Timestamp(Instant) constructors; use Timestamp(kotlin.time.Instant) from common code.

actual constructor(seconds: Long, nanoseconds: Int)(source)

Parameters

seconds

seconds since the Unix epoch, between -62135596800 and 253402300799 inclusive

nanoseconds

fraction of a second in nanoseconds, between 0 and 999999999 inclusive


actual constructor(time: Any)(source)

Deprecated (with error)

the java.util.Date and java.time.Instant constructors are JVM-only; use Timestamp(instant) with a kotlin.time.Instant, or Timestamp(seconds, nanoseconds)

Android/JVM only: the Timestamp(Date) and Timestamp(Instant) constructors; use Timestamp(kotlin.time.Instant) from common code.