getCurrentTime static method

String getCurrentTime({
  1. String format = DateTimes.fHHmmss,
})

get current time with format

Implementation

static String getCurrentTime({String format = DateTimes.fHHmmss}) {
  return DateTimes.timeToString(time: TimeOfDay.now(), format: format);
}