DateBuilder class
A class for holding onto the data for a date so that it can be built up incrementally.
Constructors
- DateBuilder.new(String _locale, _DateTimeConstructor _dateTimeConstructor)
Properties
- dateOnly ↔ bool
-
Is this constructing a pure date.
getter/setter pair
- day ↔ int
-
getter/setter pair
- dayOfYear ↔ int
-
getter/setter pair
- dayOrDayOfYear → int
-
If dayOfYear has been set, return it, otherwise return day, indicating
the day of the month.
no setter
- fractionalSecond ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hour ↔ int
-
getter/setter pair
- hour24 → int
-
no setter
- minute ↔ int
-
getter/setter pair
- month ↔ int
-
getter/setter pair
- pm ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- second ↔ int
-
getter/setter pair
- utc ↔ bool
-
getter/setter pair
- year ↔ int
-
getter/setter pair
Methods
-
asDate(
{int retries = 3}) → DateTime - Return a date built using our values. If no date portion is set, use the 'Epoch' of January 1, 1970.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDay(
int x) → void -
setDayOfYear(
int x) → void -
setFractionalSecond(
int x) → void -
setHasAmbiguousCentury(
bool isAmbiguous) → void - Sets whether year should be treated as ambiguous because it lacks a century.
-
setHour(
int x) → void -
setMinute(
int x) → void -
setMonth(
int x) → void -
setSecond(
int x) → void -
setYear(
int x) → void -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
String s) → void - Verify that we correspond to a valid date. This will reject out of range values, even if the DateTime constructor would accept them. An invalid message will result in throwing a FormatException.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited