jQuery Calenders – A plugin that provides support for various world calendars (localization)

0
208

A jQuery plugin that provides support for various world calendars (localization)

The current version is 2.0.0 and is available under the MIT licence.

http://keith-wood.name/calendars.html

Islamic Calender also available:

Days and Months: 
Yawm al-ahad
Yawm al-ithnayn
Yawm ath-thulaathaa’
Yawm al-arbi’aa’
Yawm al-khamīs
Yawm al-jum’a
Yawm as-sabt

Months:

Muharram
Safar
Rabi’ al-awwal
Rabi’ al-thani
Jumada al-awwal
Jumada al-thani
Rajab
Sha’aban
Ramadan
Shawwal
Dhu al-Qi’dah
Dhu al-Hijjah

 

For more documentation please refer to : http://keith-wood.name/calendarsRef.html

 

——————

$.calendars.instance(name, language) // Retrieve calendar
$.calendars.newDate(year, month, day, calendar, language) // Create a date

calendar.name // The calendar name
calendar.jdEpoch // Julian date of start of epoch
calendar.hasYearZero // True if has a year zero, false if not
calendar.minMonth // The minimum month number
calendar.firstMonth // The first month in the year
calendar.minDay // The minimum day number
calendar.regionalOptions // Localisations
calendar.newDate(year, month, day) // Create a date
calendar.today()
calendar.leapYear(year) // Is a leap year?
calendar.epoch(year) // BCE/CE
calendar.formatYear(year) // Formatted year
calendar.monthsInYear(year)
calendar.monthOfYear(year, month) // To ordinal month
calendar.fromMonthOfYear(year, ord) // From ordinal month
calendar.weekOfYear(year, month, day)
calendar.daysInYear(year)
calendar.dayOfYear(year, month, day)
calendar.daysInMonth(year, month)
calendar.daysInWeek()
calendar.dayOfWeek(year, month, day) // 0 = Sunday, …
calendar.weekDay(year, month, day) // Is a week day?
calendar.extraInfo(year, month, day)
calendar.add(date, offset, period) // Update a period
calendar.set(date, value, period) // Set a period
calendar.isValid(year, month, day)
calendar.toJD(year, month, day) // To Julian Date
calendar.fromJD(jd) // From Julian Date
calendar.toJSDate(year, month, day) // To JavaScript Date
calendar.fromJSDate(jsd) // From JavaScript Date

 

 

Thanks and Peace,
SABIT SOLUTIONS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

15 − 3 =