gov.sns.jca
Class TimeStampUtil

java.lang.Object
  |
  +--gov.sns.jca.TimeStampUtil

public class TimeStampUtil
extends java.lang.Object


Field Summary
static double epochSecondsOffset
           
 
Constructor Summary
protected TimeStampUtil()
          Creates new TimeStampUtil
 
Method Summary
static java.util.Date date(gov.aps.jca.dbr.TimeStamp timestamp)
          return the timestamp as a Java Date Some precision is lost since the Date class only supports millisecond resolution
static double epicsSeconds(double javaSeconds)
           
static double javaSeconds(gov.aps.jca.dbr.TimeStamp timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epochSecondsOffset

public static final double epochSecondsOffset
See Also:
Constant Field Values
Constructor Detail

TimeStampUtil

protected TimeStampUtil()
Creates new TimeStampUtil

Method Detail

date

public static java.util.Date date(gov.aps.jca.dbr.TimeStamp timestamp)
return the timestamp as a Java Date Some precision is lost since the Date class only supports millisecond resolution


javaSeconds

public static double javaSeconds(gov.aps.jca.dbr.TimeStamp timestamp)

epicsSeconds

public static double epicsSeconds(double javaSeconds)