isSameSecond method

bool isSameSecond(
  1. DateTime other
)

Check if this date is in the same second than other

Implementation

bool isSameSecond(DateTime other) =>
    secondsSinceEpoch == other.secondsSinceEpoch;