https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

spierce7

06/19/2019, 10:02 PM
Has there been any wind of a JetBrains mpp date library for Kotlin? There is something called klock on github, but dates are difficult to do right, so I'm not sure I trust it.
l

louiscad

06/19/2019, 10:06 PM
Dates are hard, yes. Do you know about TzData? They are updated quite often, sometimes with little time to react. That alone explains why there's no perfect solution in a programming language. The story went forward still, as duration is set to enter the stdlib in the not too distant future: https://github.com/Kotlin/KEEP/pull/191
s

serebit

06/20/2019, 3:54 AM
There has been wind of one, yes. Currently I use klock, but it has enough issues that I'm jumping ship to kotlinx.time as soon as it's available.
Likely community will need to make it
s

serebit

06/20/2019, 5:42 AM
I've gone over this before and I don't feel like rehashing the entire argument, but there does exist a separate mpp lib called kotlinx.time that was in the design phase last I checked. The comment from Roman is talking about how such a lib would have to be separate from the stdlib due to its size
k

kpgalligan

06/20/2019, 5:43 AM
Ah, ok
s

spierce7

06/21/2019, 4:01 PM
@elizarov Any chance you'd confirm?
e

elizarov

06/22/2019, 5:18 AM
Yes. We’ll work on date/time library. Don’t expect release soon, though.
l

louiscad

06/22/2019, 9:12 AM
I wonder how you'll approach TzData.
e

elizarov

06/22/2019, 9:23 AM
On JVM we’ll use platform.
l

louiscad

06/22/2019, 11:21 AM
Will there a way to pass your own TzData in case you need them to be the absolute latest?