toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.temporal
/
HasArithmeticOperations
Has
Arithmetic
Operations
sealed
external
interface
HasArithmeticOperations
<
T
:
HasArithmeticOperations
<
T
,
L
,
U
>
,
in
L
:
Any
,
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
:
T
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
since
(
other
:
L
,
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
:
T
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
until
(
other
:
L
,
options
:
DifferenceOptions
<
U
>
)
:
Duration
open
fun
until
(
other
:
String
,
options
:
DifferenceOptions
<
U
>
)
:
Duration