How to format hour minute from time interval in Swift
Issue #340
Use DateComponentsFormatter
https://nshipster.com/formatter/#datecomponentsformatter
Results in no padding 0
1 | func format(second: TimeInterval) -> String? { |
Use mod
1 | func format(minute: Int) -> String { |