Is there a way to format a localized time duration in Kotlin or Java? I have a Duration, and I want to display it in a localized, human readable string like "1 minute 30 seconds" or "1m 30s".
I did find RelativeDateTimeFormatter, but it only appears to generate time parts that are in the future or past tense like "1 minute ago" or "in 1 minute". Is there a way to configure it to generate the present tense?
RelativeDateTimeFormatter
class you mention. I do not see it bundled with Java SE. – Caphaitien