Is there a good way to format a Duration in something like hh:mm:ss, without having to deal with time zones?
I tried this:
DateTime durationDate = Da
Define this:
extension on Duration { String format() => '$this'.split('.')[0].padLeft(8, '0'); }
Usage:
String time = Duration(seconds: 3661).format(); // 01:01:01