HDateTimeRange.thisYear constructor
HDateTimeRange.thisYear(
- HTimeZone tz
Make a range which encompasses the current year.
Implementation
factory HDateTimeRange.thisYear(HTimeZone tz) {
HDate today = HDate.today(tz);
HDate first = HDate(today.year, 1, 1);
HDate last = HDate(today.year, 12, 31);
return HDateTimeRange.datesAndTZ(first, last, tz);
}