secAsString function

String secAsString (
  1. DateTime time
)

Returns given DateTime's second as a # String formatted SS (ex. '04').

Implementation

String secAsString(DateTime time) {
  return formatTime(time: time, format: 'SS');
}