|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.tools.Format
Takes a date in any format and converts it to the desired format
| Field Summary | |
static java.lang.String |
DATE_TIME_FMT
The default date/time format string. |
| Constructor Summary | |
Format()
|
|
| Method Summary | |
static java.lang.String |
getDate(java.text.DateFormat format,
java.util.Date date)
Formats the date according to the passed in DateFormat.
|
static java.lang.String |
getDate(java.lang.String format,
java.util.Date date)
Formats the date according to the passed in format Uses SimpleDateFormat to do its magic. |
static java.lang.String |
getFileSize(long fileSize)
Formats a dimension in bytes to the most appropriate size unit (bytes, KB, MB) |
static java.lang.String |
getNow(java.text.SimpleDateFormat format)
Formats the current date according to the passed in format Uses SimpleDateFormat to do its magic. |
static java.lang.String |
getNow(java.lang.String format)
Formats the current date according to the passed in format Uses SimpleDateFormat to do its magic. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DATE_TIME_FMT
| Constructor Detail |
public Format()
| Method Detail |
public static java.lang.String getDate(java.text.DateFormat format,
java.util.Date date)
DateFormat.
This is generally used with SRT.getDateFormat() and in the templates
it looks something like this:
$format.getDate($scarabR.DateFormat, $issue.CreatedDate)
public static java.lang.String getDate(java.lang.String format,
java.util.Date date)
public static java.lang.String getNow(java.text.SimpleDateFormat format)
public static java.lang.String getNow(java.lang.String format)
public static java.lang.String getFileSize(long fileSize)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||