Class AjxDateFormat
Object
|
+--AjxFormat
|
+--AjxDateFormat
- class
AjxDateFormat
- extends AjxFormat
Defined in AjxText.js
Constructor Summary |
AjxDateFormat
(pattern)
The AjxDateFormat class formats Date objects according to a specified
pattern.
|
Method Summary |
void
|
_createParseObject()
Creates the object that is initialized by parsing
Note:
This must be implemented by sub-classes.
|
Object
|
parse(s)
Parses the given string and returns a date.
|
Object
|
toString()
Returns string representation of this object.
|
<static> Object
|
format(pattern, date)
|
<static> Object
|
getDateInstance(style)
|
<static> Object
|
getDateTimeInstance(dateStyle, timeStyle)
|
<static> Object
|
getTimeInstance(style)
|
<static> Object
|
parse(s)
Parses the given string and returns a date.
|
_DATE_FORMATTERS
<static> Object _DATE_FORMATTERS
_dateFormats
<static> Object _dateFormats
_DATETIME_FORMATTERS
<static> Object _DATETIME_FORMATTERS
_META_CHARS
<static> Object _META_CHARS
_TIME_FORMATTERS
<static> Object _TIME_FORMATTERS
_timeFormats
<static> Object _timeFormats
DEFAULT
<static> Object DEFAULT
FULL
<static> Object FULL
LONG
<static> Object LONG
MEDIUM
<static> Object MEDIUM
SHORT
<static> Object SHORT
AjxDateFormat
AjxDateFormat(pattern)
The AjxDateFormat class formats Date objects according to a specified
pattern. The patterns are defined the same as the SimpleDateFormat
class in the Java libraries. Note: Only the
Gregorian Calendar is supported at this time. Supporting other
calendars would require a lot more information downloaded to the
client. Limiting dates to the Gregorian calendar is a trade-off.
Note:
The date format differs from the Java patterns a few ways: the pattern
"EEEEE" (5 'E's) denotes a short weekday and the pattern "MMMMM"
(5 'M's) denotes a short month name. This matches the extended
pattern found in the Common Locale Data Repository (CLDR) found at:
http://www.unicode.org/cldr/.
_createParseObject
void _createParseObject()
parse
Object parse(s)
Parses the given string and returns a date. If the string cannot be
parsed as a date, null
is returned.
toString
Object toString()
Returns string representation of this object.
format
<static> Object format(pattern, date)
getDateInstance
<static> Object getDateInstance(style)
getDateTimeInstance
<static> Object getDateTimeInstance(dateStyle, timeStyle)
getTimeInstance
<static> Object getTimeInstance(style)
parse
<static> Object parse(s)
Parses the given string and returns a date. If the string cannot be
parsed as a date, null
is returned.
Documentation generated by
JSDoc on Thu Apr 27 13:58:41 2006