|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.util.DateUtil
Field Summary | |
static long |
ONE_MINUTE
|
static long |
ONE_SECOND
|
static java.lang.String |
SIMPLE_DATE_FORMAT
|
Method Summary | |
static long |
convertToMillis(int hhmm)
Convert a time represented by the format "HHmm" into milliseconds. |
static java.lang.String |
formatTime(long time)
|
static java.lang.String |
getDurationAsString(long buildLength)
Return a String representation of a duration specified in milliseconds. |
static java.lang.String |
getFormattedTime(java.util.Date date)
|
static java.util.Date |
getMidnight()
|
static int |
getTimeFromDate(java.util.Date date)
Create an integer time from a Date object. |
static long |
milliTimeDifference(int earlier,
int later)
finds the difference in milliseconds between two integer time values of the format "HHmm". |
static java.util.Date |
parseFormattedTime(java.lang.String timeString,
java.lang.String description)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final transient long ONE_SECOND
public static final long ONE_MINUTE
public static final java.lang.String SIMPLE_DATE_FORMAT
Method Detail |
public static int getTimeFromDate(java.util.Date date)
Date
object.
date
- The date to get the timestamp from.
public static long milliTimeDifference(int earlier, int later)
earlier
- integer time value of format "HHmm"later
- integer time value of format "HHmm"
public static long convertToMillis(int hhmm)
hhmm
- where hh are hours and mm are minutes
public static java.lang.String formatTime(long time)
time
- time in milliseconds
public static java.util.Date getMidnight()
public static java.lang.String getFormattedTime(java.util.Date date)
public static java.util.Date parseFormattedTime(java.lang.String timeString, java.lang.String description) throws CruiseControlException
CruiseControlException
public static java.lang.String getDurationAsString(long buildLength)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |