toSecondOfDay method

int toSecondOfDay()

Returns the total number of seconds since midnight.

Example

final t = LocalTime(14, 8, 22, 70);
print(t.toSecondOfDay()); // 52822

Implementation

int toSecondOfDay() => toMillisecondOfDay() ~/ 1000;