Skip to content

Commit

Permalink
Duration conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
danslapman committed Aug 28, 2024
1 parent 84a6329 commit 015e5d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/kotlin/com/github/leviysoft/sk/DurationConverters.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.github.leviysoft.sk

import scala.concurrent.duration.FiniteDuration
import java.time.Duration

fun FiniteDuration.toJava() {
scala.jdk.javaapi.DurationConverters.toJava(this)
}

fun Duration.toScala() {
scala.jdk.javaapi.DurationConverters.toScala(this)
}

0 comments on commit 015e5d0

Please sign in to comment.