dojox/date/umalqura (version 1.10)

See the dojox/date/umalqura 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 umalqura 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/umalqura

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

Parameter Type Description
date dojox/date/umalqura/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/umalqura

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

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

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

If not specified, the current umalqura.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/umalqura

date2 - date1

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

If not specified, the current dojox.date.umalqura.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/umalqura
Parameter Type Description
month dojox/date/umalqura/Date
Error in the documentation? Can’t find what you are looking for? Let us know!