PersianDateUtils class abstract final

Utility functions for working with dates.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

addDaysToDate(Jalali date, int days) Jalali
Returns a Jalali with the added number of days and time set to midnight.
addMonthsToMonthDate(Jalali monthDate, int monthsToAdd) Jalali
Returns a Jalali that is monthDate with the added number of months and the day set to 1 and time set to midnight.
dateOnly(Jalali date) Jalali
Returns a Jalali with the date of the original, but time set to midnight.
datesOnly(JalaliRange range) JalaliRange
Returns a JalaliRange with the dates of the original, but with times set to midnight.
firstDayOffset(int year, int month, MaterialLocalizations localizations) int
Computes the offset from the first day of the week that the first day of the month falls on.
getDaysInMonth(int year, int month) int
Returns the number of days in a month, according to the proleptic Jalali calendar.
isSameDay(Jalali? dateA, Jalali? dateB) bool
Returns true if the two Jalali objects have the same day, month, and year, or are both null.
isSameMonth(Jalali? dateA, Jalali? dateB) bool
Returns true if the two Jalali objects have the same month and year, or are both null.
monthDelta(Jalali startDate, Jalali endDate) int
Determines the number of months between two Jalali objects.