isSameSecond method

bool isSameSecond(
  1. DateTime other
)

Returns true if this date is in the same second as other.

Implementation

bool isSameSecond(DateTime other) =>
    isSameMinute(other) && second == other.second;