Looking at the experimental `Duration` implementat...
# announcements
u
Looking at the experimental
Duration
implementation in
kotlin.time
I can see the extension methods from
Int
and
Long
to
Duration
. However I’d like to use the Java function:
Copy code
public static Duration ofSeconds(long seconds, long nanoAdjustment)
…which I can’t see an implementation for. Any thoughts on how to achieve the same in kotlin?
j
2.seconds + 3.nanoseconds?
👍 1
u
Aha, missed the
plus
method. Thanks!