isSameSecond method
Returns true
if the date is in the same second as other
, false
otherwise.
Implementation
bool isSameSecond(DateTime other) =>
year == other.year &&
month == other.month &&
day == other.day &&
hour == other.hour &&
minute == other.minute &&
second == other.second;