DatesHelper class abstract

Constructors

DatesHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

daysInRange(DateTime start, DateTime end) Iterable<DateTime>
Returns a DateTime for each day the given range.
diffInDays({required DateTime to, DateTime? from}) int
Returns the absolute value of the difference in days between two dates. The difference is calculated by comparing only the year, month, and day values of the dates. The hour, minute, second, and millisecond values are ignored. For example, if date1 is August 22nd at 11 p.m. and date2 is August 24th at 12 a.m. midnight, the difference in days is 2, not a fraction of a day.
isSameDay(DateTime a, DateTime b) bool
isSameHour(DateTime a, DateTime b) bool
isSameWeek(DateTime a, DateTime b) bool