isAtSameSecondAs method

bool isAtSameSecondAs(
  1. DateTime other
)

Checks if this DateTime is in the same second, minute, hour, day, month, and year as other.

Implementation

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