See the dojox/date/islamic reference documentation for more information.
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 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" |
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". |
Parameter | Type | Description |
---|---|---|
month | dojox/date/islamic/Date |