EllaDate class

@fileoverview A simple date model which stores the date as 3 integers -- year, month, day

Inheritance
Implemented types

Constructors

EllaDate([int year = 0, int month = 1, int day = 1])
EllaDate.fromDateTime(DateTime dateTime)
factory
EllaDate.now()
factory

Properties

day int
final
hashCode int
The hash code for this object.
no setteroverride
isToday bool
Is today
no setter
month int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalDaysInMonth int
Total days in the current month
no setter
year int
final

Methods

addDays(int value) EllaDate
Add days.
addMonths(int value) EllaDate
Add months.
addWeeks(int value) EllaDate
Add weeks.
addYears(int value) EllaDate
Add years.
atDayOfMonth(int day) EllaDate
Go to day of month
compareTo(EllaDate other) int
Compares this object to another object.
override
isAfter(EllaDate other) bool
isBefore(EllaDate other) bool
isContainedBy(EllaDate start, EllaDate end) bool
Get whether is contained by two dates.
marshal(MarshalledObject marshalled) → void
Marshal method must operate by mutating empty object passed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startOfMonth() EllaDate
Go to start of month
startOfWeek() EllaDate
Go to start of week
toDateTime() DateTime
override
toDateTimeAsUTC() DateTime
inherited
toEndOfMonth() EllaDate
Go to end of month
toString() String
A string representation of this object.
override

Operators

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

Static Properties

empty EllaDate
final

Static Methods

unmarshal(MarshalledObject marshalled) EllaDate
Encoded object parameter is encoded depending on format.