Public Types | |
| enum | { NO_MILLISECONDS = -2, UNRECOGNIZED_MILLISECONDS = -1 } |
Public Member Functions | |
| CachedDateFormat (const log4cxx::helpers::DateFormatPtr &dateFormat, int expiration) | |
| Creates a new CachedDateFormat object. | |
| virtual void | format (LogString &sbuf, log4cxx_time_t date, log4cxx::helpers::Pool &p) const |
| Formats a Date into a date/time string. | |
| virtual void | setTimeZone (const log4cxx::helpers::TimeZonePtr &zone) |
| Set timezone. | |
| virtual void | numberFormat (LogString &s, int n, log4cxx::helpers::Pool &p) const |
| Format an integer consistent with the format method. | |
Static Public Member Functions | |
| static int | findMillisecondStart (log4cxx_time_t time, const LogString &formatted, const log4cxx::helpers::DateFormatPtr &formatter, log4cxx::helpers::Pool &pool) |
| Finds start of millisecond field in formatted time. | |
| static int | getMaximumCacheValidity (const LogString &pattern) |
| Gets maximum cache validity for the specified SimpleDateTime conversion pattern. | |
|
|
|
|
||||||||||||
|
Creates a new CachedDateFormat object.
|
|
||||||||||||||||||||
|
Finds start of millisecond field in formatted time.
|
|
||||||||||||||||
|
Formats a Date into a date/time string.
Implements DateFormat. |
|
|
Gets maximum cache validity for the specified SimpleDateTime conversion pattern.
|
|
||||||||||||||||
|
Format an integer consistent with the format method.
Reimplemented from DateFormat. |
|
|
Set timezone.
|