Has there been any wind of a JetBrains mpp date li...
# multiplatform
s
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
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
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
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
Ah, ok
s
@elizarov Any chance you'd confirm?
e
Yes. We’ll work on date/time library. Don’t expect release soon, though.
l
I wonder how you'll approach TzData.
e
On JVM we’ll use platform.
l
Will there a way to pass your own TzData in case you need them to be the absolute latest?