| java.lang.Object org.tigris.scarab.tools.Format
Format | public class Format (Code) | | Takes a date in any format and converts it to the desired format
|
Method Summary | |
public static String | getDate(DateFormat format, Date date) Formats the date according to the passed in DateFormat . | public static String | getDate(String format, Date date) Formats the date according to the passed in format
Uses SimpleDateFormat to do its magic. | public static String | getFileSize(long fileSize) | public static String | getNow(SimpleDateFormat format) Formats the current date according to the passed in format
Uses SimpleDateFormat to do its magic. | public static String | getNow(String format) Formats the current date according to the passed in format
Uses SimpleDateFormat to do its magic. |
DATE_TIME_FMT | final public static String DATE_TIME_FMT(Code) | | The default date/time format string.
|
getDate | public static String getDate(DateFormat format, Date date)(Code) | | Formats the date according to the passed in DateFormat .
This is generally used with SRT.getDateFormat() and in the templates
it looks something like this:
$format.getDate($scarabR.DateFormat, $issue.CreatedDate)
|
getDate | public static String getDate(String format, Date date)(Code) | | Formats the date according to the passed in format
Uses SimpleDateFormat to do its magic.
|
getFileSize | public static String getFileSize(long fileSize)(Code) | | Formats a dimension in bytes to the most appropriate
size unit (bytes, KB, MB)
|
getNow | public static String getNow(SimpleDateFormat format)(Code) | | Formats the current date according to the passed in format
Uses SimpleDateFormat to do its magic.
|
getNow | public static String getNow(String format)(Code) | | Formats the current date according to the passed in format
Uses SimpleDateFormat to do its magic.
|
|
|