dojox/date/posix (version 1.10)

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

Method Summary

  • getIsoWeekOfYear(dateObject) Get the ISO8601 week number of the given date.
  • getIsoWeeksInYear(dateObject) Determine the number of ISO8601 weeks in the year of the given date.
  • getStartOfWeek(dateObject,firstDay) Return a date object representing the first day of the given date's week.
  • setIsoWeekOfYear(dateObject,week) Set the ISO8601 week number of the given date.
  • strftime(dateObject,format,locale)

Methods

getIsoWeekOfYear(dateObject)
Defined by dojox/date/posix

Get the ISO8601 week number of the given date. The week containing January 4th is the first week of the year. See http://en.wikipedia.org/wiki/ISO_week_date

Parameter Type Description
dateObject Date
getIsoWeeksInYear(dateObject)
Defined by dojox/date/posix

Determine the number of ISO8601 weeks in the year of the given date. Most years have 52 but some have 53. See http://www.phys.uu.nl/~vgent/calendar/isocalendar_text3.htm

Parameter Type Description
dateObject Date
getStartOfWeek(dateObject,firstDay)
Defined by dojox/date/posix

Return a date object representing the first day of the given date's week.

Parameter Type Description
dateObject Date
firstDay Number
setIsoWeekOfYear(dateObject,week)
Defined by dojox/date/posix

Set the ISO8601 week number of the given date. The week containing January 4th is the first week of the year.

Parameter Type Description
dateObject Date
week Number

can be positive or negative: -1 is the year's last week.

strftime(dateObject,format,locale)
Defined by dojox/date/posix
Parameter Type Description
dateObject Date
format String
locale String
Optional
Error in the documentation? Can’t find what you are looking for? Let us know!