feat:增加刷新日程提醒功能

This commit is contained in:
2025-11-20 14:01:43 +08:00
parent b2260d139b
commit 6ed9efe06d
5 changed files with 65 additions and 4 deletions

View File

@@ -7,3 +7,12 @@ String formatDate(DateTime date) {
String formatTime(DateTime datetime) {
return DateFormat('yyyy-MM-dd HH:mm:ss').format(datetime);
}
bool isToday(DateTime? date) {
if (date == null) return false;
final now = DateTime.now();
return date.year == now.year &&
date.month == now.month &&
date.day == now.day;
}