Droid API 22+ options for Date/Duration (in Kotlin)?
问题 I'm porting an iOS app to Android, target API 22. I do a bunch of Date/TimeInterval stuff. I do it all in UTC so it just works for me. I'm struggling with what to use for Android. There's Date (from the beginning of time, ha ha). I guess I could do duration math by converting to/from the time milliseconds attribute. It's not clear to me what zone/rules apply to those. I see people who seem to use Calendars as Date objects and pass those around. That seems a bit off. And then there's the new