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