getTimeStr function

String getTimeStr(
  1. DateTime dateTime
)

format(2018.09.08 11:22:333)

Implementation

String getTimeStr(DateTime dateTime) {
  return "${twoNum(dateTime.year)}.${twoNum(dateTime.month)}.${twoNum(dateTime.day)}-"
      "${twoNum(dateTime.hour)}:${twoNum(dateTime.minute)}:${twoNum(dateTime.second)}:${dateTime.millisecond}";
}