toMillisecondOfDay method

int toMillisecondOfDay()

Returns the total number of milliseconds since midnight.

Example

final t = LocalTime(14, 8, 22, 70);
print(t.toMillisecondOfDay()); // 52822700

Implementation

int toMillisecondOfDay() {
  return hour * 60 * 60 * 1000 + minute * 60 * 1000 + second * 1000 + millisecond;
}