RelativeTime extension

on

Methods

endOfWeek() DateTime

Available on DateTime, provided by the RelativeTime extension

isDateRange(DateRangeType type) 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()); Checks if the date matches the given DateRangeType Supports: today, yesterday, tomorrow, thisWeek, last7Days, leapYear, thisMonth, lastMonth, nextMonth, thisYear, lastYear, nextYear
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

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