EveryDueTimeOfDay class

Class that processes DateTime so that next always returns the next day with the same hour, minute, second, millisecond and microsecond as the DateTime that is being processed.

Inheritance
Mixed-in types

Constructors

EveryDueTimeOfDay(Duration timeOfDay)
Class that processes DateTime so that next always returns the next day with the same hour, minute, second, millisecond and microsecond as the DateTime that is being processed.
const
EveryDueTimeOfDay.from(DateTime date)
Constructor that takes the time of day from date.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
timeOfDay Duration
This is the time of day that will be used to calculate the next date.
finalinherited

Methods

compareTo(DateValidatorTimeOfDay other) int
Compares this object to another object.
inherited
endDate(DateTime date) DateTime
Returns the previous DateTime that matches the Every pattern.
inherited
filterValidDates(Iterable<DateTime> dates) Iterable<DateTime>
Returns the valid dates for this DateValidator in dates.
inherited
invalid(DateTime date) bool
Returns true if the date is invalid for this DateValidator.
inherited
next(DateTime date) DateTime
Returns the next instance of the given date considering this Every base process.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous(DateTime date) DateTime
Returns the previous instance of the given date considering this Every base process.
override
startDate(DateTime date) DateTime
Returns the start date considering the given every base process. If every is a LimitedEveryDateValidator, the limit will be passed on.
inherited
toString() String
A string representation of this object.
inherited
valid(DateTime date) bool
Returns true if the date is valid for this DateValidator.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator unary-() DateValidator
inherited

Constants

lastMicrosecond → const EveryDueTimeOfDay
An EveryDueTimeOfDay that represents the last microsecond of the day.
midnight → const EveryDueTimeOfDay
An EveryDueTimeOfDay that represents midnight (00:00).