datesOnly method

DateTimeRange<T> datesOnly(
  1. DateTimeRange<T> range
)

Returns a DateTimeRange with the dates of the original, but with times set to midnight.

See also:

  • dateOnly, which does the same thing for a single date.

Implementation

DateTimeRange<T> datesOnly(DateTimeRange<T> range) {
  return DateTimeRange<T>(start: dateOnly(range.start), end: dateOnly(range.end));
}