|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.ValueTimeUtilFns
public class ValueTimeUtilFns
Field Summary | |
---|---|
protected static java.lang.Class[] |
constructorParameterTypes
The constructor parameter types. |
static java.lang.String |
DATA_SEPARATOR
The data separator |
protected static boolean |
gmtFlag
The GMT flag (true for GMT time zone, false for local time zone.) |
Constructor Summary | |
---|---|
protected |
ValueTimeUtilFns()
|
Method Summary | |
---|---|
protected static java.lang.Object |
getComponentForClass(java.lang.String className,
java.lang.String dataTxt)
Creates a new instance of the class represented by the class or interface with the given string name. |
protected static java.lang.reflect.Constructor |
getConstructorForClass(java.lang.String className)
Gets the constructor for the class represented by the class or interface with the given string name. |
static long |
getCurrentTime()
Get the current time value. |
static long |
getCurrentTimestamp()
Get the current time stamp. |
static long |
getTime(long timestamp)
Gets the time for the specified timestamp. |
static long |
getTimestamp(long millis)
Get the time stamp for the specified time value. |
static java.lang.String |
getTimestampText(long timestamp)
Returns a string representation of the specified timestamp. |
static java.lang.String |
getTimestampText(long timestamp,
boolean gmtFlag)
Returns a string representation of the specified timestamp. |
static java.lang.String |
getTimeText(long millis)
Returns a string representation of the specified time value. |
static java.lang.String |
getTimeText(long millis,
boolean gmtFlag)
Returns a string representation of the specified time value. |
protected static ValueTimeBlock |
getValueTimeBlock(java.lang.String dataStr)
Gets the value time block for the specified data string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DATA_SEPARATOR
protected static final java.lang.Class[] constructorParameterTypes
protected static final boolean gmtFlag
Constructor Detail |
---|
protected ValueTimeUtilFns()
Method Detail |
---|
public static final long getCurrentTime()
public static final long getCurrentTimestamp()
public static final long getTime(long timestamp)
timestamp
- the timestamp
(seconds since January 1, 1970, 00:00:00 GMT.)
public static final long getTimestamp(long millis)
millis
- the milliseconds since January 1, 1970, 00:00:00 GMT.
public static final java.lang.String getTimestampText(long timestamp)
timestamp
- the timestamp
(seconds since January 1, 1970, 00:00:00 GMT.)
public static final java.lang.String getTimestampText(long timestamp, boolean gmtFlag)
timestamp
- the timestamp
(seconds since January 1, 1970, 00:00:00 GMT.)gmtFlag
- true for GMT time zone, false for local time zone.
public static final java.lang.String getTimeText(long millis)
millis
- the milliseconds since January 1, 1970, 00:00:00 GMT.
public static final java.lang.String getTimeText(long millis, boolean gmtFlag)
millis
- the milliseconds since January 1, 1970, 00:00:00 GMT.gmtFlag
- true for GMT time zone, false for local time zone.
protected static final java.lang.reflect.Constructor getConstructorForClass(java.lang.String className)
className
- the fully qualified name of the desired class.
protected static final java.lang.Object getComponentForClass(java.lang.String className, java.lang.String dataTxt)
new
expression with an empty argument list. The class
is initialized if it has not already been initialized.
className
- the fully qualified name of the desired class.dataTxt
- the text representation of the data.
protected static final ValueTimeBlock getValueTimeBlock(java.lang.String dataStr)
dataStr
- the data string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |