HDateTimeRange class

HDateTimeRange models a starting and ending timestamp

See Project Haystack

Constructors

HDateTimeRange(HDateTime start, HDateTime end)
Make from two timestamps
factory
HDateTimeRange.dateAndTZ(HDate date, HTimeZone tz)
Make for single date within given timezone
factory
HDateTimeRange.datesAndTZ(HDate start, HDate end, HTimeZone tz)
Make for inclusive dates within given timezone
factory
HDateTimeRange.fromString(String str, HTimeZone tz)
Parse from string using the given timezone as context for date based ranges. The formats are:
factory
HDateTimeRange.lastMonth(HTimeZone tz)
Make a range which encompasses the previous month.
factory
HDateTimeRange.lastWeek(HTimeZone tz)
Make a range which encompasses the previous week.
factory
HDateTimeRange.lastYear(HTimeZone tz)
Make a range which encompasses the previous year.
factory
HDateTimeRange.thisMonth(HTimeZone tz)
Make a range which encompasses the current month.
factory
HDateTimeRange.thisWeek(HTimeZone tz)
Make a range which encompasses the current week.
factory
HDateTimeRange.thisYear(HTimeZone tz)
Make a range which encompasses the current year.
factory

Properties

end HDateTime
Inclusive ending timestamp
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start HDateTime
Inclusive starting timestamp
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns "start to end"
override

Operators

operator ==(Object other) bool
The equality operator.
inherited