toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.temporal
/
Instant
/
Companion
Companion
js
object
Companion
:
Factory
<
Instant
,
Nothing
,
Nothing
>
,
Comparator
<
Instant
,
Nothing
>
(
source
)
Members
Functions
compare
Link copied to clipboard
js
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
js
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
js
fun
fromEpochMicroseconds
(
epochMicroseconds
:
BigInt
)
:
Instant
from
Epoch
Milliseconds
Link copied to clipboard
js
fun
fromEpochMilliseconds
(
epochMilliseconds
:
JsLong
)
:
Instant
from
Epoch
Nanoseconds
Link copied to clipboard
js
fun
fromEpochNanoseconds
(
epochNanoseconds
:
BigInt
)
:
Instant
from
Epoch
Seconds
Link copied to clipboard
js
fun
fromEpochSeconds
(
epochSeconds
:
JsLong
)
:
Instant