|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoemware.core.util.TimeUtils
public final class TimeUtils
The time utils.
| Field Summary | |
|---|---|
static int |
RECORD_INTERVAL
|
| Constructor Summary | |
|---|---|
TimeUtils()
|
|
| Method Summary | |
|---|---|
static long |
convertHttpDate(java.lang.String pDate)
Convert the passed date to milliseconds. |
static int |
currentEpochId()
Returns the current epoch id. |
static int |
currentEpochTime()
Returns the current start time (based on epoch). |
static int |
currentTimeSecs()
Returns the current time in seconds. |
static int |
currentTimeSecs(long pTimeMillis)
Returns the time in seconds for the value passed. |
static int |
epochId(int pTime)
Returns the time period id based on the start and stop time. |
static int |
epochId(int pStartTime,
int pStopTime)
Returns the epoch id for the start/stop time. |
static int |
epochTime(int pEpochId)
Returns the time for the epoch id passed. |
static long |
secsToMillis(int pTime)
Returns the time in ms - converted from seconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RECORD_INTERVAL
| Constructor Detail |
|---|
public TimeUtils()
| Method Detail |
|---|
public static final int epochId(int pStartTime,
int pStopTime)
pStartTime - The start time.pStopTime - The stop time.
public static final int currentEpochTime()
public static final int currentEpochId()
public static final int epochTime(int pEpochId)
pEpochId - The epoch id.
public static final int epochId(int pTime)
pTime - The time the event started (in seconds).
public static final int currentTimeSecs()
public static final int currentTimeSecs(long pTimeMillis)
pTimeMillis - The millis time.
public static final long secsToMillis(int pTime)
pTime - The time in seconds.
public static final long convertHttpDate(java.lang.String pDate)
pDate - The raw RFC 822/1123 time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||