Class Timestamp

  • All Implemented Interfaces:
    Comparable

    public class Timestamp
    extends Date
    • Constructor Detail

      • Timestamp

        public Timestamp​(Time t)
      • Timestamp

        public Timestamp​(long time)
    • Method Detail

      • getTime

        public long getTime()
        Description copied from class: Date
        Returns the number of seconds since SQL_EPOCH 1/1/1970.
        Overrides:
        getTime in class Date
      • toString

        public java.lang.String toString()
        Description copied from class: Date
        Returns the date in a string format.
        Overrides:
        toString in class Date
        Returns:
        string representation of the date in the current Settings.dateFormat.
      • getNanos

        public int getNanos()
      • setNanos

        public void setNanos​(int n)
      • equals

        public boolean equals​(Timestamp ts)
      • equals

        public boolean equals​(java.lang.Object ts)
        Description copied from class: Date
        Checks to see if the Date object passed occurs at the same time as the existing Date object.
        Overrides:
        equals in class Date
        Parameters:
        ts - object to compare with existing.
        Returns:
        boolean stating whether or not it occurs at the same time as existing date.
      • before

        public boolean before​(Timestamp ts)
      • after

        public boolean after​(Timestamp ts)