PersianDate class

Jalali Date for Dart

Constructors

PersianDate(int year, int month, int day)
Default constructor from Jalali date
PersianDate.fromDateTime(DateTime datetime)
PersianDate.fromGregorian(int year, int month, int day)
PersianDate.fromGregorianString(String datetime)
PersianDate.now()
Constructor from current date and time

Properties

day int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
ld int
read / write
month int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
year int
read / write

Methods

greToJal() → dynamic
Gregorian to Jalali converter Thanks to breceivemail [breceivemail.android AT yahoo dot com] for java code TODO: add docs to this method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString({bool showDate: true, bool showTime: false}) String
returns date in string
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

kabiseMonthsLength → const List<int>
const [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335]
monthsLength → const List<int>
const [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]