Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-js
/
js.temporal
/
HasArithmeticOperations
Has
Arithmetic
Operations
sealed
interface
HasArithmeticOperations
<
T
:
HasArithmeticOperations
<
T
,
L
,
U
>
,
in
L
:
JsAny
,
U
:
DateTimeUnit
<
U
>
>
:
HasDurationOperations
<
T
,
ArithmeticOptions
>
(
source
)
Inheritors
Instant
PlainDate
PlainDateTime
PlainTime
PlainYearMonth
ZonedDateTime
Members
Functions
add
Link copied to clipboard
open
fun
add
(
duration
:
Duration
,
options
:
ArithmeticOptions
=
definedExternally
)
:
T
open
fun
add
(
duration
:
DurationLike
,
options
:
ArithmeticOptions
=
definedExternally
)
:
T
open
fun
add
(
duration
:
String
,
options
:
ArithmeticOptions
=
definedExternally
)
:
T
since
Link copied to clipboard
open
fun
since
(
other
:
L
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
since
(
other
:
T
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
since
(
other
:
String
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
subtract
Link copied to clipboard
open
fun
subtract
(
duration
:
Duration
,
options
:
ArithmeticOptions
=
definedExternally
)
:
T
open
fun
subtract
(
duration
:
DurationLike
,
options
:
ArithmeticOptions
=
definedExternally
)
:
T
open
fun
subtract
(
duration
:
String
,
options
:
ArithmeticOptions
=
definedExternally
)
:
T
until
Link copied to clipboard
open
fun
until
(
other
:
L
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
until
(
other
:
T
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
until
(
other
:
String
,
options
:
DifferenceOptions
<
U
>
)
:
Duration