mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-19 23:55:26 +02:00
9 lines
302 B
Dart
9 lines
302 B
Dart
extension DateExtensions on DateTime {
|
|
bool isSameDay(final DateTime other) {
|
|
return year == other.year && month == other.month && day == other.day;
|
|
}
|
|
|
|
DateTime asNormalizedDate() => DateTime(year, month, day);
|
|
DateTime asNormalizedDateTime() => DateTime(year, month, day, hour, minute);
|
|
}
|