isSameDay method

bool isSameDay(
  1. DateTime b
)

Whether or not two times are on the same day.

Implementation

bool isSameDay(DateTime b) =>
    year == b.year && month == b.month && day == b.day;