dojo.date.locale (version 1.3)

Method Summary

Methods

_getDayOfYear(dateObject)
Defined by
gets the day of the year as represented by dateObject
ParameterTypeDescription
dateObjectDate
Returns: Number
_getGregorianBundle(locale)
Defined by
ParameterTypeDescription
localeString
Returns: Object
_getWeekOfYear(dateObject, firstDayOfWeek)
Defined by
ParameterTypeDescription
dateObjectDate
firstDayOfWeekNumber
Returns: Number
_parseInfo(options)
Defined by
ParameterTypeDescription
optionsdojo.date.locale.__FormatOptions
Optional.
addCustomFormats(packageName, bundleName)
Defined by
Add a reference to a bundle containing localized custom formats to be used by date/time formatting and parsing routines.
ParameterTypeDescription
packageNameString
bundleNameString
format(dateObject, options)
Defined by
Format a Date object as a String, using locale-specific settings.
ParameterTypeDescription
dateObjectDate
optionsdojo.date.locale.__FormatOptions
Optional.
Returns: String
getNames(item, type, use, locale)
Defined by
Used to get localized strings from dojo.cldr for day or month names.
ParameterTypeDescription
itemString
typeString
useString
Optional.
localeString
Optional.
Returns: Array
isWeekend(dateObject, locale)
Defined by
Determines if the date falls on a weekend, according to local custom.
ParameterTypeDescription
dateObjectDate
Optional.
localeString
Optional.
Returns: Boolean
parse(value, options)
Defined by
Convert a properly formatted string to a primitive Date object, using locale-specific settings.
ParameterTypeDescription
valueString
optionsdojo.date.locale.__FormatOptions
Optional.
Returns: null | Date
regexp(options)
Defined by
Builds the regular needed to parse a localized date
ParameterTypeDescription
optionsdojo.date.locale.__FormatOptions
Optional.
Returns: String