dojox/date/islamic (version 1.10)

See the dojox/date/islamic reference documentation for more information.

Property Summary

Method Summary

  • add(date,interval,amount) Add to a Date in intervals of different size, from milliseconds to years
  • compare(date1,date2,portion) Compare two islamic date objects by date, time, or both.
  • difference(date1,date2,interval) date2 - date1
  • getDaysInMonth(month)

Properties

locale

Methods

add(date,interval,amount)
Defined by dojox/date/islamic

Add to a Date in intervals of different size, from milliseconds to years

Parameter Type Description
date dojox/date/islamic/Date

Date object to start with

interval String

A string representing the interval. One of the following: "year", "month", "day", "hour", "minute", "second", "millisecond", "week", "weekday"

amount int

How much to add to the date.

compare(date1,date2,portion)
Defined by dojox/date/islamic

Compare two islamic date objects by date, time, or both.

Returns 0 if equal, positive if a > b, else negative.

Parameter Type Description
date1 dojox/date/islamic/Date
date2 dojox/date/islamic/Date

If not specified, the current islamic.Date is used.

portion String
Optional

A string indicating the "date" or "time" portion of a Date object. Compares both "date" and "time" by default. One of the following: "date", "time", "datetime"

difference(date1,date2,interval)
Defined by dojox/date/islamic

date2 - date1

Parameter Type Description
date1 dojox/date/islamic/Date
date2 dojox/date/islamic/Date
Optional

If not specified, the current dojox.date.islamic.Date is used.

interval String
Optional

A string representing the interval. One of the following: "year", "month", "day", "hour", "minute", "second", "millisecond", "week", "weekday"

Defaults to "day".

getDaysInMonth(month)
Defined by dojox/date/islamic
Parameter Type Description
month dojox/date/islamic/Date
Error in the documentation? Can’t find what you are looking for? Let us know!