|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.jonclark.util.FormatUtils
public class FormatUtils
| Constructor Summary | |
|---|---|
FormatUtils()
|
|
| Method Summary | |
|---|---|
static String |
formatFullDate(Date d)
Format date like as in this example: Wednesday, March 31, 2005 5:23:55 pm |
static String |
formatLongDate(Date d)
Format date like as in this example: March 31, 2005 |
static String |
formatTimeSpan(long span,
int nUnits)
Format a timespan as in this examples: 5 days, 2 hours 9 minutes, 23 seconds BUT NOT 5 days, 2 hours, 9 minutes, 23 seconds |
static String |
formatTimeSpanFull(long span)
Format a timespan as in this example: 5 days, 2 hours, 9 minutes, 23 seconds |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatUtils()
| Method Detail |
|---|
public static String formatFullDate(Date d)
d - The date object to be formatted
public static String formatLongDate(Date d)
d - The date object to be formatted
public static String formatTimeSpanFull(long span)
span -
public static String formatTimeSpan(long span,
int nUnits)
span - nUnits - The maxiumum number of units that
will be shown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||