DateExtension extension
- on
Properties
- dateOnly → String
-
Available on DateTime?, provided by the DateExtension extension
no setter - isNow → bool
-
Available on DateTime?, provided by the DateExtension extension
no setter - isToday → bool
-
Available on DateTime?, provided by the DateExtension extension
no setter - isTomorrow → bool
-
Available on DateTime?, provided by the DateExtension extension
no setter - isYesterday → bool
-
Available on DateTime?, provided by the DateExtension extension
no setter - realtime → String
-
Available on DateTime?, provided by the DateExtension extension
no setter - timeOnly → String
-
Available on DateTime?, provided by the DateExtension extension
no setter
Methods
-
isDay(
DateTime now) → bool -
Available on DateTime?, provided by the DateExtension extension
-
toDate(
{String? format, String? local, TimeFormats? timeFormat, DateFormats dateFormat = DateFormats.dateDMCY, String? separator}) → String -
Available on DateTime?, provided by the DateExtension extension
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 -
Available on DateTime?, provided by the DateExtension extension
Converts milliseconds since epoch to a customizable relative time string.