What is your usual way to handle "times of day"? A...
# getting-started
h
What is your usual way to handle "times of day"? As in not entire dates just stuff like from 15:00 to 19:00 every day? Especially in terms of saving those settings in DBs or serializing them as JSON.
I would serialise following ISO-8601 rules
h
Ah, man I somehow only found the DateTime variants with whole dates. Weird that those didn't pop up in my searches. Thank you for both.
🍻 1
c
I recommend reading the https://github.com/Kotlin/kotlinx-datetime#types section, it's very clear on the available types and their pro/cons 🙂
h
Thanks!