|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.common.utils.TimeUtils
public final class TimeUtils
An utility for converting dates and time.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apertereports.common.ARConstants |
|---|
ARConstants.BooleanValues, ARConstants.ErrorCode, ARConstants.InputTypes, ARConstants.Keys, ARConstants.Parameter, ARConstants.ReportMimeType, ARConstants.ReportType |
| Field Summary |
|---|
| Fields inherited from interface org.apertereports.common.ARConstants |
|---|
CACHE_MANAGER_CHECK_INTERVAL, DATETIME_PATTERN, FIELD_DELIMITER, FILE_DATE_FORMAT, FILE_PREFIX, JMS_PROPERTY_REPORT_ORDER_ID, JNDI_DEFAULT_CONTEXT, JNDI_JMS_CONNECTION_FACTORY_ID, JNDI_JMS_GENERATE_REPORT_QUEUE_ID, JNDI_JMS_PROCESS_REPORT_QUEUE_ID, RECORD_DELIMITER, SUBREPORT_MAP_PARAMETER_NAME, WS_NAMESPACE, WS_REQUEST_LOCAL_PART |
| Method Summary | |
|---|---|
static String |
getDateFormatted(Date date)
Converts a given date to string using a default date format. |
static Date |
getDateFormatted(String date)
Method that formats a date from string using a default date format. |
static String |
getDefaultDateFormat()
Returns a default date format. |
static long |
secondsToMilliseconds(int seconds)
Converts seconds to milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getDefaultDateFormat()
public static Date getDateFormatted(String date)
throws ParseException
date - Input date string
ParseException - On date parser errorpublic static String getDateFormatted(Date date)
date - Input date
public static long secondsToMilliseconds(int seconds)
seconds - Seconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||