java.lang.Object |
↳ |
java.text.Format |
|
↳ |
java.text.DateFormat |
|
|
↳ |
org.apache.log4j.helpers.RelativeTimeDateFormat |
Class Overview
Formats a Date by printing the number of milliseconds
elapsed since construction of the format. This is the fastest
printing DateFormat in the package.
Summary
[Expand]
Inherited Constants |
From class
java.text.DateFormat
int |
AM_PM_FIELD |
|
int |
DATE_FIELD |
|
int |
DAY_OF_WEEK_FIELD |
|
int |
DAY_OF_WEEK_IN_MONTH_FIELD |
|
int |
DAY_OF_YEAR_FIELD |
|
int |
DEFAULT |
|
int |
ERA_FIELD |
|
int |
FULL |
|
int |
HOUR0_FIELD |
|
int |
HOUR1_FIELD |
|
int |
HOUR_OF_DAY0_FIELD |
|
int |
HOUR_OF_DAY1_FIELD |
|
int |
LONG |
|
int |
MEDIUM |
|
int |
MILLISECOND_FIELD |
|
int |
MINUTE_FIELD |
|
int |
MONTH_FIELD |
|
int |
SECOND_FIELD |
|
int |
SHORT |
|
int |
TIMEZONE_FIELD |
|
int |
WEEK_OF_MONTH_FIELD |
|
int |
WEEK_OF_YEAR_FIELD |
|
int |
YEAR_FIELD |
|
|
[Expand]
Inherited Fields |
From class
java.text.DateFormat
protected
Calendar |
calendar |
|
protected
NumberFormat |
numberFormat |
|
|
Public Methods |
StringBuffer
|
format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends to sbuf the number of milliseconds elapsed
since the start of the application.
|
Date
|
parse(String s, ParsePosition pos)
This method does not do anything but return null .
|
[Expand]
Inherited Methods |
From class
java.text.DateFormat
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
abstract
StringBuffer
|
format(Date arg0, StringBuffer arg1, FieldPosition arg2)
|
final
StringBuffer
|
format(Object arg0, StringBuffer arg1, FieldPosition arg2)
|
final
String
|
format(Date arg0)
|
static
Locale[]
|
getAvailableLocales()
|
Calendar
|
getCalendar()
|
final
static
DateFormat
|
getDateInstance(int arg0)
|
final
static
DateFormat
|
getDateInstance(int arg0, Locale arg1)
|
final
static
DateFormat
|
getDateInstance()
|
final
static
DateFormat
|
getDateTimeInstance(int arg0, int arg1, Locale arg2)
|
final
static
DateFormat
|
getDateTimeInstance(int arg0, int arg1)
|
final
static
DateFormat
|
getDateTimeInstance()
|
final
static
DateFormat
|
getInstance()
|
NumberFormat
|
getNumberFormat()
|
final
static
DateFormat
|
getTimeInstance(int arg0)
|
final
static
DateFormat
|
getTimeInstance()
|
final
static
DateFormat
|
getTimeInstance(int arg0, Locale arg1)
|
TimeZone
|
getTimeZone()
|
int
|
hashCode()
|
boolean
|
isLenient()
|
Date
|
parse(String arg0)
|
abstract
Date
|
parse(String arg0, ParsePosition arg1)
|
Object
|
parseObject(String arg0, ParsePosition arg1)
|
void
|
setCalendar(Calendar arg0)
|
void
|
setLenient(boolean arg0)
|
void
|
setNumberFormat(NumberFormat arg0)
|
void
|
setTimeZone(TimeZone arg0)
|
|
From class
java.text.Format
Object
|
clone()
|
final
String
|
format(Object arg0)
|
abstract
StringBuffer
|
format(Object arg0, StringBuffer arg1, FieldPosition arg2)
|
AttributedCharacterIterator
|
formatToCharacterIterator(Object arg0)
|
Object
|
parseObject(String arg0)
|
abstract
Object
|
parseObject(String arg0, ParsePosition arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
protected
final
long
startTime
Public Constructors
public
RelativeTimeDateFormat
()
Public Methods
public
StringBuffer
format
(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends to sbuf
the number of milliseconds elapsed
since the start of the application.
public
Date
parse
(String s, ParsePosition pos)
This method does not do anything but return null
.