utils/u_shamsi
library
Classes
-
UDate
-
Base of UJalali and UGregorian: y/m/d/time, Julian day, comparison and math.
-
UDateFormatter
-
Pieces of a date as text (y, yyyy, mm, mN month name, wN weekday…); get one from date.formatter.
-
UGregorian
-
Gregorian date that converts exactly to/from Jalali.
UGregorian(2024, 3, 20).toJalali()
-
UGregorianFormatter
-
English month/weekday names for UGregorian.
-
UJalali
-
Jalali (Shamsi/Persian) date with exact conversion to/from Gregorian.
UJalali.now().formatFullDate(), UJalali(1403, 1, 1).toDateTime()
-
UJalaliFormatter
-
Jalali names: Persian, Afghan (حمل، ثور…) and Latin month/weekday names.
Extensions
-
JalaliExt
on UJalali
-
Formatting, comparisons and day math on UJalali.
UJalali.now().formatCustom("wN dd mN yyyy")