isAtSameMicrosecondAs method

bool isAtSameMicrosecondAs(
  1. DateTime other
)

Returns true if other is at the same microsecond as this.

This means the exact microsecond, including year, month, day, hour, minute, second and millisecond.

Does not account for timezones.

Implementation

bool isAtSameMicrosecondAs(DateTime other) =>
    isAtSameMillisecondAs(other) && microsecond == other.microsecond;