public interface RelativeDateShortcut
RelativeDateStringfor use in widgets that leverage relative-dates, such as the
Note that some shortcuts indicate a time period
but do not directly indicate whether the value refers to the start or end of the time period in question. This ambiguity
can be resolved by specifying an explicit
RelativeDateRangePosition when calling APIs
that convert from RelativeDates to absolute date values. This is the case for $today, $tomorrow,
$yesterday, $weekAgo, $weekFromNow, $monthAgo and $monthFromNow. If a range position
is not explicitly passed, these will all default to the start of the day in question.
Builtin options include
RelativeDateRangePositionmay be used to specify the end of the current day.