|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.driver.xds.util.TimeUtil
A collection of useful time conversion methods.
Field Summary | |
static long |
MS_ONE_DAY
The number of milliseconds in one day. |
static long |
MS_ONE_HALF_HOUR
The number of milliseconds in one half hour. |
static long |
MS_ONE_HALF_MINUTE
The number of milliseconds in half a minute. |
static long |
MS_ONE_HOUR
The number of milliseconds in one hour. |
static long |
MS_ONE_MINUTE
The number of milliseconds in one minute. |
static long |
MS_ONE_SECOND
The number of milliseconds in one second. |
Constructor Summary | |
TimeUtil()
|
Method Summary | |
static long |
toDaysFromMillis(long millis,
long[] remainder)
Converts from milliseconds to days. |
static long |
toHoursFromMillis(long millis,
long[] remainder)
Converts from milliseconds to hours. |
static long |
toMillisFromDays(long days)
Converts from days to milliseconds. |
static long |
toMillisFromHours(long hours)
Converts from hours to milliseconds. |
static long |
toMillisFromMinutes(long minutes)
Converts from minutes to milliseconds. |
static long |
toMillisFromSeconds(long seconds)
Converts from seconds to milliseconds. |
static long |
toMinutesFromMillis(long millis,
long[] remainder)
Converts from milliseconds to minutes. |
static long |
toSecondsFromMillis(long millis,
long[] remainder)
Converts from milliseconds to hours. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long MS_ONE_SECOND
public static final long MS_ONE_HALF_MINUTE
public static final long MS_ONE_MINUTE
public static final long MS_ONE_HALF_HOUR
public static final long MS_ONE_HOUR
public static final long MS_ONE_DAY
Constructor Detail |
public TimeUtil()
Method Detail |
public static long toMillisFromSeconds(long seconds)
seconds
- the number of seconds to convert
public static long toMillisFromMinutes(long minutes)
minutes
- the number of minutes to convert
public static long toMillisFromHours(long hours)
hours
- the number of hours to convert
public static long toMillisFromDays(long days)
days
- the number of days to convert
public static long toSecondsFromMillis(long millis, long[] remainder)
millis
- the number of milliseconds to convertremainder
- the leftover milliseconds
public static long toMinutesFromMillis(long millis, long[] remainder)
millis
- the number of milliseconds to convertremainder
- the leftover milliseconds
public static long toHoursFromMillis(long millis, long[] remainder)
millis
- the number of milliseconds to convertremainder
- the leftover milliseconds
public static long toDaysFromMillis(long millis, long[] remainder)
millis
- the number of milliseconds to convertremainder
- the leftover milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |