ERXOrdinalDateFormatter Class Reference

Inherits com::webobjects::foundation::NSTimestampFormatter.

Collaboration diagram for ERXOrdinalDateFormatter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXOrdinalDateFormatter (String aPattern, DateFormatSymbols symbols)
 ERXOrdinalDateFormatter (String aPattern)
 ERXOrdinalDateFormatter ()
StringBuffer format (Object obj, StringBuffer toAppendTo, FieldPosition pos)
Object parseObject (String source, ParsePosition pos)

Private Member Functions

String ordinalSuffix (NSTimestamp timestamp)

Private Attributes

final Pattern ORDINAL_PATTERN = Pattern.compile("(?:([1-3]?[0-9])(?:st|nd|rd|th))")


Detailed Description

Date formatter that supports days with ordinal values like 1st, 2nd, 3rd. etc. Not localized (English only at present).

To include an ordinal suffix supply a format string that looks something like this: "d'th' MMM, yyyy" where 'th' will be replaced by the correct ordinal suffix. All standard NSTimestampFormatter tokens are supported.

Author:
qdolan

Constructor & Destructor Documentation

ERXOrdinalDateFormatter ( String  aPattern  ) 

ERXOrdinalDateFormatter ( String  aPattern,
DateFormatSymbols  symbols 
)


Member Function Documentation

StringBuffer format ( Object  obj,
StringBuffer  toAppendTo,
FieldPosition  pos 
)

String ordinalSuffix ( NSTimestamp  timestamp  )  [private]

Object parseObject ( String  source,
ParsePosition  pos 
)


Member Data Documentation

final Pattern ORDINAL_PATTERN = Pattern.compile("(?:([1-3]?[0-9])(?:st|nd|rd|th))") [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:12 2012 for Project Wonder by  doxygen 1.5.8