AndroidDateTimeFormatters 3.0 – Drew Hamilton
AndroidDateTimeFormatters went a long time without needing an update. It formats times in either a 12- or 24-hour style, depending on the system preference—what could change? But it built up a pile of unmerged dependency update PRs that was starting to make me anxious, so I decided to revisit the project to see whether it needed anything new, or whether I could shut off Renovate for good. The Android API already provides a way to format clock times in the preferred style: android.text.format.DateFormat.getTimeFormat returns a java.text.DateFormat instance that does this. But there was no way to do it in modern date/time libraries like java.time or ThreeTenBP. AndroidDateTimeFormatters was created to fill that gap. ThreeTenBP’s utility on Android faded over time as core library desugaring took over, so the java.time version of AndroidDateTimeFormatters was the main remaining use case.
