microsecondsSinceMidnight property

int get microsecondsSinceMidnight

The time as microseconds since midnight.

DateTime(2023, 4, 1, 12).microsecondsSinceMidnight; // 43200000000 ('12:00')

Implementation

int get microsecondsSinceMidnight => sumMicroseconds(hour, minute, second, millisecond, microsecond);