Skip to content

BaseMax/JalaliCalendarTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jalali Calendar TS (TypeScript)

This is a TypeScript library that allows you to working with Jalali Calendar system.

Functions

  • en2fa(value): Convert a English number to Persian digit characters
  • isLeapYear(year): Check a Jalali year is a leap year or not
  • daysOfYear(year): Count number of days in a Jalali year
  • daysOfMonth(year, month): Count number of month in a Jalali year
  • jalaliDate(yearnull, monthnull, daynull): Convert a Gregorian date to Jalali date
  • daysOfYearUntilDate(year, month, day): Count number of days until a Jalali date
  • diffDays(year1, month1, day1, year2, month2, day2): Count number of days between two Jalali dates
  • firstDayOfYear(year): Get first day of a Jalali year
  • firstDayOfMonth(year, month): Get first day of a Jalali month

Authors

  • Max Base: Creator
  • Mohamad Shiralizadeh: TS package

© Copyright Max Base, 2022