Method Summary |
|
public Object | clone() Returns a clone of this instance. |
public boolean | equals(Object obj) Tests this formatter for equality with an arbitrary object.
Parameters: obj - the object (null permitted). |
public StringBuffer | format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) Formats the given date as the amount of elapsed time (relative to the
base date specified in the constructor).
Parameters: date - the date. Parameters: toAppendTo - the string buffer. Parameters: fieldPosition - the field position. |
public long | getBaseMillis() Returns the base date/time used to calculate the elapsed time for
display. |
public String | getDaySuffix() Returns the string that is appended to the day count. |
public String | getHourSuffix() Returns the string that is appended to the hour count. |
public String | getMinuteSuffix() Returns the string that is appended to the minute count. |
public String | getSecondSuffix() Returns the string that is appended to the second count. |
public boolean | getShowZeroDays() Returns the flag that controls whether or not zero day counts are
shown in the formatted output. |
public int | hashCode() Returns a hash code for this instance. |
public static void | main(String[] args) Some test code. |
public Date | parse(String source, ParsePosition pos) Parses the given string (not implemented).
Parameters: source - the date string. Parameters: pos - the parse position. |
public void | setBaseMillis(long baseMillis) Sets the base date/time used to calculate the elapsed time for display. |
public void | setDaySuffix(String suffix) Sets the string that is appended to the day count. |
public void | setHourSuffix(String suffix) Sets the string that is appended to the hour count. |
public void | setMinuteSuffix(String suffix) Sets the string that is appended to the minute count. |
public void | setSecondFormatter(NumberFormat formatter) Sets the formatter for the seconds and milliseconds. |
public void | setSecondSuffix(String suffix) Sets the string that is appended to the second count. |
public void | setShowZeroDays(boolean show) Sets the flag that controls whether or not zero day counts are shown
in the formatted output. |