DateExtension extension
- on
Properties
- date → 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 - time → 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(
{String? format, String? local, TimeFormats timeFormat = TimeFormats.timeHMa, DateFormats dateFormat = DateFormats.dateDMCY, String separator = " at ", RealtimeTextFormats? formats, RealtimeOptions? options}) → String -
Available on DateTime?, provided by the DateExtension extension
Converts milliseconds since epoch to a customizable relative time string.