UrduDates class abstract final

Urdu ordinals and date parts, using the Gregorian calendar.

The Hijri calendar is deliberately not implemented: it requires moon sighting data or a conversion library, and a wrong Hijri date is worse than no Hijri date. Extend this class only with a source you trust.

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

format(DateTime date) → String
Formats a date as "۱۵ اگست ۲۰۲۶", with Urdu digits.
weekday(DateTime date) → String
The Urdu weekday name for date.

Constants

months → const List<String>
Gregorian months in Urdu.
weekdays → const List<String>
Weekdays, Monday first.