Date class abstract

Implemented types
Implementers

Constructors

Date.new()
const

Properties

day int
no setter
formatter DateFormatter
no setter
hashCode int
The hash code for this object.
no setteroverride
hour int
no setter
julianDayNumber int
no setter
millisecond int
no setter
minute int
no setter
month int
no setter
monthLength int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
no setter
time Duration
no setter
weekDay int
no setter
year int
no setter

Methods

add({int years = 0, int months = 0, int days = 0}) Date
addDays(int days) Date
addMonths(int months) Date
addYears(int years) Date
compareTo(Date other) int
Compares this object to another object.
override
copy({int? year, int? month, int? day}) Date
distanceFrom(Date other) int
distanceTo(Date other) int
isLeapYear() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
toString() String
A string representation of this object.
override
toUtcDateTime() DateTime
withDay(int day) Date
withMonth(int month) Date
withYear(int year) Date

Operators

operator +(int days) Date
operator -(int days) Date
operator <(Date other) bool
operator <=(Date other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(Date other) bool
operator >=(Date other) bool
operator ^(Date other) int

Constants

maxJulianDayNumber → const int
minJulianDayNumber → const int