RelativeTime extension

on

Methods

endOfWeek() DateTime

Available on DateTime, provided by the RelativeTime extension

isLast7Days() bool

Available on DateTime, provided by the RelativeTime extension

isLeapYear() bool

Available on DateTime, provided by the RelativeTime extension

isThisWeek() bool

Available on DateTime, provided by the RelativeTime extension

isToday() bool

Available on DateTime, provided by the RelativeTime extension

/....... for Ranges .......//// Date Ranges (Yesterday, Today, Tomorrow, Last 7 Days, etc.) Easy access to common date ranges for filtering data. Example: bool isToday = IntlDateHelper.isToday(DateTime.now());
isTomorrow() bool

Available on DateTime, provided by the RelativeTime extension

isYesterday() bool

Available on DateTime, provided by the RelativeTime extension

relativeTime() String

Available on DateTime, provided by the RelativeTime extension

Returns a human-readable relative time string (e.g., "5 minutes ago")
startOfWeek() DateTime

Available on DateTime, provided by the RelativeTime extension