public class NiceFormatters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
dateformat |
static java.text.SimpleDateFormat |
fulldateformat |
Constructor and Description |
---|
NiceFormatters() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatNiceDate(java.util.Date date) |
static java.lang.String |
formatNiceDate(java.util.Date date,
boolean showdate) |
static java.lang.String |
formatNumber(long number) |
public static java.text.SimpleDateFormat dateformat
public static java.text.SimpleDateFormat fulldateformat
public static java.lang.String formatNumber(long number)
number
- a long numberpublic static java.lang.String formatNiceDate(java.util.Date date, boolean showdate)
date
- the date to formatshowdate
- if true, show date, if false, shows only amount
of time since the datepublic static java.lang.String formatNiceDate(java.util.Date date)