TimeExtension extension

on

Properties

isToday bool

Available on int?, provided by the TimeExtension extension

no setter
isTomorrow bool

Available on int?, provided by the TimeExtension extension

no setter
isYesterday bool

Available on int?, provided by the TimeExtension extension

no setter
realtime String

Available on int?, provided by the TimeExtension extension

Converts milliseconds since epoch to a human-readable relative time string.
no setter

Methods

toDate({String? format, String? local, TimeFormats? timeFormat, DateFormats dateFormat = DateFormats.dateDMCY, String? separator}) String

Available on int?, provided by the TimeExtension 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 int?, provided by the TimeExtension extension

Converts milliseconds since epoch to a customizable relative time string.