toHHMMSS method

String toHHMMSS()

converts duration to HH:MM:SS format

Implementation

String toHHMMSS() => toString().split('.').first.padLeft(8, "0");