How to add Duration to LocalDateTime for API level lower than 26

后端 未结 2 1611
误落风尘
误落风尘 2021-01-12 15:40

I am developing an application for API level 19 (KitKat).

I have a LocalDateTime object and a Duration object. I need to add this Dur

2条回答
  •  我在风中等你
    2021-01-12 16:35

    The bbb answer in the comments is correct.

    Currently the best option for android is ThreeTenABP. Jake Wharton explains why it's better to use this library rather than Joda-Time and ThreeTenBP in Android.

提交回复
热议问题