isAtSameMillisecondAs method

bool isAtSameMillisecondAs(
  1. DateTime other
)

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

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

Does not account for timezones.

Implementation

bool isAtSameMillisecondAs(DateTime other) =>
    isAtSameSecondAs(other) && millisecond == other.millisecond;