Class TimeStamp


  • public class TimeStamp
    extends Object
    • Constructor Detail

      • TimeStamp

        public TimeStamp()
      • TimeStamp

        public TimeStamp​(long secPastEpoch,
                         long nsec)
      • TimeStamp

        public TimeStamp​(double dbl)
      • TimeStamp

        public TimeStamp​(TimeStamp ts)
    • Method Detail

      • add

        public void add​(double dbl)
      • sub

        public void sub​(double dbl)
      • asDouble

        public double asDouble()
      • asBigDecimal

        public BigDecimal asBigDecimal()
        Get the timestamp in seconds since the epoch as a BigDecimal preserving the precision of the input timestamp. This method was added by Tom Pelaia.
        Returns:
        timestamp in seconds since the epoch preserving the full precision available
      • toMMDDYY

        public String toMMDDYY()
      • toMONDDYYYY

        public String toMONDDYYYY()
      • secPastEpoch

        public long secPastEpoch()
      • nsec

        public long nsec()