toTimeString method

String toTimeString()

Formats this DateTime's time as a ISO-8601 time, ignoring the date.

DateTime(1, 1, 1, 20, 30, 40, 5, 6).toTimeString(); // 20:30:40.005006

Implementation

String toTimeString() => Times.format(hour, minute, second, millisecond, microsecond);