ToReadableString extension
add extension toReadableString to Duration
- on
Methods
-
toReadableString(
) → String - toReadableString will return the duration in a human-readable format like "01:02:03" if the "HH" is zero, it will return only minutes and seconds example: