isSameMinute method
Whether a and b fall within the same minute.
Implementation
bool isSameMinute(DateTime a, DateTime b) {
return a.year == b.year &&
a.month == b.month &&
a.day == b.day &&
a.hour == b.hour &&
a.minute == b.minute;
}