immich/mobile/lib/utils/datetime_comparison.dart

3 lines
136 B
Dart
Raw Normal View History

2026-02-02 15:06:40 +01:00
bool isAtSameMomentAs(DateTime? a, DateTime? b) =>
(a == null && b == null) || ((a != null && b != null) && a.isAtSameMomentAs(b));