org.apache.catalina.util
public class Strftime extends Object
Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Field Summary | |
---|---|
protected SimpleDateFormat | simpleDateFormat |
protected static Properties | translate |
Constructor Summary | |
---|---|
Strftime(String origFormat)
Create an instance of this date formatting class
| |
Strftime(String origFormat, Locale locale)
Create an instance of this date formatting class
|
Method Summary | |
---|---|
protected String | convertDateFormat(String pattern)
Search the provided pattern and get the C standard
Date/Time formatting rules and convert them to the
Java equivalent.
|
String | format(Date date)
Format the date according to the strftime-style string given in the constructor.
|
TimeZone | getTimeZone()
Get the timezone used for formatting conversions
|
protected String | quote(String str, boolean insideQuotes) |
void | setTimeZone(TimeZone timeZone)
Change the timezone used to format dates
|
protected boolean | translateCommand(StringBuffer buf, String pattern, int index, boolean oldInside)
Try to get the Java Date/Time formatting associated with
the C standard provided.
|
See Also: Strftime
Parameters: origFormat the strftime-style formatting string locale the locale to use for locale-specific conversions
Parameters: pattern The pattern to search
Returns: The modified pattern
Parameters: date the date to format
Returns: the formatted date
Returns: the timezone
See Also: SimpleDateFormat#setTimeZone
Parameters: buf The buffer pattern The date/time pattern index The char index oldInside Flag value
Returns: True if new is inside buffer