|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csstudio.data.values.TimestampFactory
public final class TimestampFactory
A factory for ITimestamp
time stamps.
Method Summary | |
---|---|
static ITimestamp |
createTimestamp(long seconds,
long nanoseconds)
Creates a time stamp based on the specified seconds and nanoseconds. |
static ITimestamp |
fromCalendar(java.util.Calendar calendar)
Create a time stamp for the given Calendar. |
static ITimestamp |
fromDouble(double seconds)
Creates a time stamp based on the specified seconds. |
static ITimestamp |
fromMillisecs(long millisecs)
Create a time stamp for the given milliseconds since the epoch. |
static ITimestamp |
fromSQLTimestamp(java.sql.Timestamp sql_time)
Convert SQL Timestamp into CSS Timestamp. |
static ITimestamp |
now()
Creates a time stamp for the current system time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ITimestamp createTimestamp(long seconds, long nanoseconds)
Refer to ITimestamp
for details on epoch etc.
The nanoseconds will get normalized, i.e. it's OK to provide nanoseconds that amount to seconds.
seconds
- Seconds since 1970 epochnanoseconds
- Nanoseconds within the seconds
public static ITimestamp now()
public static ITimestamp fromDouble(double seconds)
Refer to ITimestamp
for details on epoch etc.
seconds
- Seconds since 1970 epoch
public static ITimestamp fromCalendar(java.util.Calendar calendar)
calendar
- Calendar value to convert into time stamp
public static ITimestamp fromMillisecs(long millisecs)
millisecs
- Milliseconds since 1970 epoch
public static ITimestamp fromSQLTimestamp(java.sql.Timestamp sql_time)
time
- SQL Timestamp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |