BasicDate class

The class responsible to holds Date data. Date Type isn't specified so it can be Jalali, Gregorian or Hijri

var date = DateBase(1378, 10, 30);
Implemented types

Constructors

BasicDate(int year, int month, int day)
Constructor of BasicDate year, month and day are int and there is no constraint for it

Properties

day int
Day of the month
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
month int
Month of the year
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
Year of the date
getter/setter pair

Methods

compareTo(BasicDate other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator <(BasicDate other) bool
Relational less than operator. returns true if this is less than other
operator <=(BasicDate other) bool
Relational less than or equal operator. returns true if this is less than or equal other
operator ==(Object other) bool
The equality operator.
override
operator >(BasicDate other) bool
Relational greater than operator. returns true if this is greater than other
operator >=(BasicDate other) bool
Relational greater than or equal operator. returns true if this is greater than or equal other