any library recommendation for lightweight date op...
# android
any library recommendation for lightweight date operations (like "days between 2 dates")? I'd prefer something that doesn't add extensions to numbers
google 1
stackoverflow 1
Joda Time?
okay I was looking for something lightweight and preferably written in Kotlin?
nothing against Joda Time, it just feels a bit overkill for this (and it's written in Java)
f ? not kotlin, but lightweight , but please check if it suits your needs
👍 2
Yes, the java.time APIs are absolutely wonderful for working with dates, and I’d encourage you to use them (or the ABP library port of it) as they are the intended standard API for dates on the JVM. They were developed with help from the Joda Time team, and Joda Time should now be considered deprecated (as noted on their website A Kotlin MP alternative is Island Time, which looks pretty nice, though I haven’t actually used it for myself yet. It looks very similar to the java.time APIs, though it does add extensions to numbers (which I’m not a fan of, either).
@Faraz @Casey Brooks the new java api looks good, thanks! 👍
@Barco thanks! Saw that too. But it adds extensions to numbers.