bool isSameDay(DateTime time) { return year == time.year && month == time.month && day == time.day; }