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
-
- Object
- DateValidator
- DateValidatorTimeOfDay
- EveryDueTimeOfDay
- Implemented 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
-
filterValidDates(
Iterable< DateTime> dates) → Iterable<DateTime> -
Returns the valid dates for this DateValidator in
dates.inherited -
invalid(
DateTime date) → bool -
Returns true if the
dateis invalid for this DateValidator.inherited -
next(
DateTime date) → DateTime -
Returns the next instance of the given
dateconsidering 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
dateconsidering this Every base process.override -
startDate(
DateTime date) → DateTime -
Returns the next DateTime that matches the Every pattern.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
valid(
DateTime date) → bool -
Returns true if the
dateis valid for this DateValidator.inherited -
validsIn(
Iterable< DateTime> dates) → Iterable<DateTime> -
Returns the valid dates for this DateValidator in
dates.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited