pubnub-kotlin-docs
Toggle table of contents
13.1.0
common
Target filter
common
Switch theme
Search in API
Skip to content
pubnub-kotlin-docs
pubnub-kotlin-api
/
com.pubnub.api.utils
/
Instant
Instant
data
class
Instant
(
val
epochSeconds
:
Long
,
val
nanosecondsOfSecond
:
Int
=
0
)
:
Comparable
<
Instant
>
Members
Constructors
Instant
Link copied to clipboard
constructor
(
epochSeconds
:
Long
,
nanosecondsOfSecond
:
Int
=
0
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
epoch
Seconds
Link copied to clipboard
val
epochSeconds
:
Long
nanoseconds
Of
Second
Link copied to clipboard
val
nanosecondsOfSecond
:
Int
Functions
compare
To
Link copied to clipboard
open
operator override
fun
compareTo
(
other
:
Instant
)
:
Int
minus
Link copied to clipboard
operator
fun
minus
(
other
:
Instant
)
:
Duration
operator
fun
minus
(
duration
:
Duration
)
:
Instant
plus
Link copied to clipboard
operator
fun
plus
(
duration
:
Duration
)
:
Instant
to
Epoch
Milliseconds
Link copied to clipboard
fun
toEpochMilliseconds
(
)
:
Long
to
Local
Date
Time
Link copied to clipboard
fun
toLocalDateTime
(
timeZone
:
TimeZone
)
:
LocalDateTime