PlutoDateTimeHelper class

Constructors

PlutoDateTimeHelper()

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

getDaysInBetween(DateTime startDate, DateTime endDate) List<DateTime>
Returns the dates of startDate and endDate.
isValidRange({required DateTime date, required DateTime? start, required DateTime? end}) bool
Returns whether date is in the range start and end.
isValidRangeInMonth({required DateTime date, required DateTime? start, required DateTime? end}) bool
Returns whether date is in the range of the first day of start.month and the last day of end.month.
moveToFirstWeekday(DateTime date) DateTime
Returns the first date of the week containing date.
moveToLastWeekday(DateTime date) DateTime
Returns the last day of the week containing date.
parseOrNullWithFormat(String date, String format) DateTime?
Returns the value converted from date to format. If conversion fails, null is returned.