Jalali class
Constructors
- Jalali.new(int year, [int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0, int millisecond = 0])
-
factory
- Jalali.fromDateTime(DateTime dt)
-
factory
- Jalali.fromGregorian(Gregorian g)
-
factory
- Jalali.fromJulianDayNumber(int jdn, [int hour = 0, int minute = 0, int second = 0, int millisecond = 0])
-
factory
- Jalali.now()
-
factory
Properties
- day → int
-
final
- formatter → JalaliFormatter
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- hour → int
-
final
- julianDayNumber → int
-
final
- millisecond → int
-
final
- millisecondsSinceEpoch → int
-
Available on Jalali, provided by the JalaliExt extension
no setter - minute → int
-
final
- month → int
-
final
- monthLength → int
-
no setteroverride
- quarter → int
-
Available on Jalali, provided by the JalaliExt extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- second → int
-
final
- time → Duration
-
no setterinherited
- weekDay → int
-
no setteroverride
- year → int
-
final
Methods
-
add(
{int years = 0, int months = 0, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0}) → Jalali -
override
-
addDays(
int days) → Jalali -
addHours(
int hours) → Jalali -
addMinutes(
int minutes) → Jalali -
addSeconds(
int seconds) → Jalali -
compareTo(
Date other) → int -
Compares this object to another object.
inherited
-
copy(
{int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond}) → Jalali -
override
-
daysUntil(
Jalali other) → int -
distanceTo(
Date other) → int -
inherited
-
endOfWeek(
) → Jalali -
firstDayOfMonth(
) → Jalali -
formatAfghanDate(
{bool persianDigits = false}) → String -
formatCompactDate(
{bool persianDigits = false}) → String -
formatCustom(
String pattern, {bool persianDigits = false}) → String -
formatDateTime(
{bool persianDigits = false}) → String -
formatFullDate(
{bool persianDigits = false}) → String -
formatMonthYear(
{bool persianDigits = false}) → String -
formatShortDate(
{bool persianDigits = false}) → String -
formatTime(
{bool persianDigits = false}) → String -
isAfter(
Jalali other) → bool -
isAtSameMomentAs(
Jalali other) → bool -
isBefore(
Jalali other) → bool -
isLeapYear(
) → bool -
override
-
isSameDayAs(
Jalali other) → bool -
isThisMonth(
) → bool -
isToday(
) → bool -
isWeekend(
) → bool -
lastDayOfMonth(
) → Jalali -
nextDay(
) → Jalali -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousDay(
) → Jalali -
startOfWeek(
) → Jalali -
toDateTime(
) → DateTime -
override
-
toGregorian(
) → Gregorian -
toString(
) → String -
A string representation of this object.
override
-
toUtcDateTime(
) → DateTime -
override
-
weeksInYear(
) → int
Operators
-
operator +(
int days) → Jalali -
override
-
operator -(
int days) → Jalali -
override
-
operator <(
Date other) → bool -
inherited
-
operator <=(
Date other) → bool -
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Date other) → bool -
inherited
-
operator >=(
Date other) → bool -
inherited