isAtSameSecondAs method

bool isAtSameSecondAs(
  1. DateTime other
)

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

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

Does not account for timezones.

Implementation

bool isAtSameSecondAs(DateTime other) =>
    isAtSameMinuteAs(other) && second == other.second;