https://kotlinlang.org logo
Title
k

krtko

05/11/2019, 8:15 PM
Have any of you used the Klock library? https://korlibs.soywiz.com/klock/ It looks pretty awesome. Exactly the usecase for inline classes.
s

serebit

05/11/2019, 8:23 PM
It’s okay. From my use cases, it falters in a few areas, namely lack of support for optional values in patterns. The API is a little wacky as well.
k

krtko

05/11/2019, 8:32 PM
Looks like it has limited formatting support
s

serebit

05/11/2019, 8:34 PM
There’s also the fact that it isn’t published to jcenter despite being in a stable release, and the README is pretty outdated
j

jw

05/12/2019, 1:20 AM
Last I checked it doesn't have a timezone database so you can't use it for anything beyond the most trivial of time math (e.g., 5 seconds + 6 seconds)
s

serebit

05/12/2019, 1:55 AM
If I’m honest, I kinda hate it. I’m only using it because there’s no alternative, at least until kotlinx.time drops