public class JBITimeUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DAY_BASE |
static long |
HOUR_BASE |
static long |
MIN_BASE |
static double |
SEC_BASE |
| Constructor and Description |
|---|
JBITimeUtil() |
JBITimeUtil(long milliseconds) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDays()
Get the days portion
|
int |
getHours()
Get the hours portion
|
int |
getMinutes()
Get the minutes portion
|
double |
getSeconds()
Get the seconds with millsecconds portion
|
int |
getSecondsOnly()
Get the seconds, truncated, no milliseconds
|
void |
setTime(long milliseconds)
Will set the values for the Days, Hours, Minutes and Seconds, given
the timestamp (milliseconds).
|
public static final long DAY_BASE
public static final long HOUR_BASE
public static final long MIN_BASE
public static final double SEC_BASE
public JBITimeUtil()
public JBITimeUtil(long milliseconds)
public void setTime(long milliseconds)
milliseconds - the number of millisecondspublic int getDays()
public int getHours()
public int getMinutes()
public int getSecondsOnly()
public double getSeconds()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.