neat, I hope we see more of this.
I'm also wondering if kotlin can create one thats #multiplatform, seems like it shouldnt be too hard to use Java.time.duration on JVM and a string similarly formatted on js.
One of the reasons I like it so much is that we have a couple user entered timeout fields, and for test data we can use
val <http://Int.ms|Int.ms> get() = Duration.ofMillis(this)
, which makes for neat test data entry in kotlin
a
araqnid
05/17/2018, 8:21 PM
I was trying to write a multiplatform time library so I can write things for java.time and use them in JS