toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.temporal
/
Duration
/
Companion
Companion
js
object
Companion
:
Factory
<
Duration
,
DurationLike
,
Nothing
>
(
source
)
Members
Functions
compare
Link copied to clipboard
js
fun
compare
(
one
:
Duration
,
two
:
Duration
,
options
:
DurationArithmeticOptions
=
definedExternally
)
:
ComparisonResult
from
Link copied to clipboard
js
open
fun
from
(
value
:
Duration
,
options
:
Nothing
=
definedExternally
)
:
Duration
open
fun
from
(
value
:
DurationLike
,
options
:
Nothing
=
definedExternally
)
:
Duration
open
fun
from
(
value
:
String
,
options
:
Nothing
=
definedExternally
)
:
Duration