toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.temporal
/
Instant
/
Companion
Companion
object
Companion
:
Factory
<
Instant
,
Nothing
,
Nothing
>
,
Comparator
<
Instant
,
Nothing
>
(
source
)
Members
Functions
compare
Link copied to clipboard
open
fun
compare
(
a
:
Instant
,
b
:
Instant
)
:
ComparisonResult
open
fun
compare
(
a
:
Instant
,
b
:
Nothing
)
:
ComparisonResult
open
fun
compare
(
a
:
Instant
,
b
:
String
)
:
ComparisonResult
open
fun
compare
(
a
:
Nothing
,
b
:
Nothing
)
:
ComparisonResult
open
fun
compare
(
a
:
Nothing
,
b
:
String
)
:
ComparisonResult
open
fun
compare
(
a
:
String
,
b
:
String
)
:
ComparisonResult
from
Link copied to clipboard
open
fun
from
(
value
:
Instant
,
options
:
Nothing
=
definedExternally
)
:
Instant
open
fun
from
(
value
:
Nothing
,
options
:
Nothing
=
definedExternally
)
:
Instant
open
fun
from
(
value
:
String
,
options
:
Nothing
=
definedExternally
)
:
Instant
from
Epoch
Microseconds
Link copied to clipboard
fun
fromEpochMicroseconds
(
epochMicroseconds
:
BigInt
)
:
Instant
from
Epoch
Milliseconds
Link copied to clipboard
fun
fromEpochMilliseconds
(
epochMilliseconds
:
JsLong
)
:
Instant
from
Epoch
Nanoseconds
Link copied to clipboard
fun
fromEpochNanoseconds
(
epochNanoseconds
:
BigInt
)
:
Instant
from
Epoch
Seconds
Link copied to clipboard
fun
fromEpochSeconds
(
epochSeconds
:
JsLong
)
:
Instant