DateExtension extension
Methods
-
isDay(DateTime now)
→ bool
-
-
toDate({String? format, String? local, TimeFormats? timeFormat, DateFormats dateFormat = DateFormats.dateDMCY, String? separator})
→ String
-
Converts the custom date to a formatted string.
-
toRealtime({bool showRealtime = true, int whenShowNow = 10, String? format, String? local, TimeFormats timeFormat = TimeFormats.timeHMa, DateFormats dateFormat = DateFormats.dateDMCY, String separator = " at ", RealtimeTextFormat textFormat = const RealtimeTextFormat(), String onRealtime(Realtime value)?, String onRealtimeByHours(Realtime value)?, String onRealtimeByMinutes(Realtime value)?, String onRealtimeBySeconds(Realtime value)?, String onRealtimeByAfterHours(Realtime value)?, String onRealtimeByAfterMinutes(Realtime value)?, String onRealtimeByAfterSeconds(Realtime value)?, String onRealtimeByTomorrow(Realtime value, String time)?, String onRealtimeByToday(Realtime value, String time)?, String onRealtimeByYesterday(Realtime value, String time)?})
→ String
-
Converts milliseconds since epoch to a customizable relative time string.