HDateTimeRange.datesAndTZ constructor

HDateTimeRange.datesAndTZ(
  1. HDate start,
  2. HDate end,
  3. HTimeZone tz
)

Make for inclusive dates within given timezone

Implementation

factory HDateTimeRange.datesAndTZ(HDate start, HDate end, HTimeZone tz) {
  return HDateTimeRange(start.midnight(tz), end.plusDays(1).midnight(tz));
}