PersianDateTime class

Constructors

PersianDateTime({dynamic jalaaliDateTime})
PersianDateTime.fromGregorian({dynamic gregorianDateTime})

Properties

datetime DateTime
read / write
gregorianDay int
read / write
gregorianMonth int
read / write
gregorianMonthName String
read / write
gregorianShortMonthName String
read / write
gregorianShortYear int
read / write
gregorianYear int
read / write
gregorianZeroLeadingDay String
read / write
gregorianZeroLeadingMonth String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
jalaaliDay int
read / write
jalaaliMonth int
read / write
jalaaliMonthName String
read / write
jalaaliShortYear int
read / write
jalaaliYear int
read / write
jalaaliZeroLeadingDay String
read / write
jalaaliZeroLeadingMonth String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(Duration duration) PersianDateTime
difference(PersianDateTime otherDate) Duration
isAfter(PersianDateTime otherDate) bool
isBefore(PersianDateTime otherDate) bool
isEqual(PersianDateTime otherDate) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
subtract(Duration duration) PersianDateTime
toGregorian({String format = 'YYYY-MM-DD'}) String
toJalaali({String format = 'YYYY/MM/DD'}) String
toString() String
A string representation of this object. [...]
override

Operators

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