|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.base.utility.DateUtility
public final class DateUtility
Various methods for date and time handling.
Field Summary | |
---|---|
static org.apache.commons.lang.time.FastDateFormat |
ISO_8601_TIME_FORMATTER
ISO 8601 time format. |
static org.apache.commons.lang.time.FastDateFormat |
ISO_8601_TIMESTAMP_FORMATTER
ISO 8601 date and time format. |
static org.apache.commons.lang.time.FastDateFormat |
NICE_TIMESTAMP_FORMATTER
Date format YYYYMMDD HHmm. |
Method Summary | |
---|---|
static java.util.Date |
getCurrentGmtDate()
Returns a current GMT date. |
static java.util.Date |
getDate(long millis)
Transform milliseconds from the epoch into date. |
static java.lang.String |
getDuration(long milliseconds)
Convert millisecond duration into readable time amount. |
static java.lang.String |
getGmtTimestamp()
Current GMT timestamp as ISO 8601 date and time separated by space. |
static java.lang.String |
getIsoTime(long millis)
Times in ISO 8601 format (time). |
static java.lang.String |
getIsoTimestamp()
Current timestamp in ISO 8601 format (date and time). |
static java.lang.String |
getIsoTimestamp(java.util.Date date)
Timestamp in ISO 8601 format (date and time). |
static java.lang.String |
getIsoTimestamp(long millis)
Timestamp in ISO 8601 format (date and time). |
static java.lang.String |
getTimestamp()
Current timestamp as ISO 8601 date and time separated by space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.lang.time.FastDateFormat ISO_8601_TIMESTAMP_FORMATTER
public static final org.apache.commons.lang.time.FastDateFormat ISO_8601_TIME_FORMATTER
public static final org.apache.commons.lang.time.FastDateFormat NICE_TIMESTAMP_FORMATTER
Method Detail |
---|
public static final java.lang.String getIsoTimestamp()
public static final java.lang.String getIsoTimestamp(java.util.Date date)
date
- Date to format.
public static final java.lang.String getIsoTimestamp(long millis)
millis
- Time in UTC milliseconds from the epoch.
public static final java.lang.String getIsoTime(long millis)
millis
- Time in UTC milliseconds from the epoch.
public static final java.lang.String getTimestamp()
public static final java.lang.String getGmtTimestamp()
public static final java.util.Date getCurrentGmtDate()
public static final java.lang.String getDuration(long milliseconds)
milliseconds
- Duration in milliseconds.
public static final java.util.Date getDate(long millis)
millis
- Time in UTC milliseconds from the epoch.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |