dojox/main.buddhist (version 1.10)

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 buddhist date objects by date, time, or both.
  • difference(date1,date2,interval) date2 - date1
  • getDaysInMonth(dateObject)
  • isLeapYear(dateObject)

Properties

locale

Methods

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

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

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

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

Parameter Type Description
date1 dojox/date/buddhist/Date
date2 dojox/date/buddhist/Date
portion String
Optional
difference(date1,date2,interval)
Defined by dojox/date/buddhist

date2 - date1

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

If not specified, the current hebrew.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(dateObject)
Defined by dojox/date/buddhist
Parameter Type Description
dateObject dojox/date/buddhist/Date
isLeapYear(dateObject)
Defined by dojox/date/buddhist
Parameter Type Description
dateObject dojox/date/buddhist/Date
Error in the documentation? Can’t find what you are looking for? Let us know!