Is there a multiplatform date and time library? I ...
# multiplatform
l
Is there a multiplatform date and time library? I need to be able to parse and format dates, do local time conversion and date arithmetic (like computing now+2 days)
n
l
Oh, I was about to dismiss that because it's very limited. Seems like my information was outdated because now it seems to be much more extensive than last time I looked. Thanks for the tip.
👍 1
c
The only thing that is quite common to do with dates and is missing is Locale-aware formatting: https://github.com/Kotlin/kotlinx-datetime/issues/352 If you want to eg. format a date as
"2025.07.25, Friday"
you need to add your own expect/actual based formatter functions and implement the formatting using whatever is available on your target platform, but that’s quite simple and easy to do.
l
OK, thanks. I can do without that for now actually.