DurationText
fun DurationText(duration: Duration, modifier: Modifier = Modifier, locale: Locale = Locale.current, format: DurationFormat = DurationFormat.short(), style: TextStyle = TextStyle.Default)
Element that displays Duration values in a human-readable format in a language matching a given Locale.
Parameters
duration
Duration to be displayed.
modifier
Modifier to apply to this layout node.
locale
Locale to use when determining the language.
format
DurationFormat used to generate AnnotatedString from Duration value.
style
TextStyle configuration for the text such as color, font, line height etc.