Package adams.core

Class TimeMsec

    • Constructor Detail

      • TimeMsec

        public TimeMsec()
        Default constructor.
      • TimeMsec

        public TimeMsec​(long date)
        Initializes the time with the given msecs.
        Parameters:
        date - the msecs since 1970
      • TimeMsec

        public TimeMsec​(Date date)
        Initializes the time with the given date.
        Parameters:
        date - the Java date
    • Method Detail

      • toDate

        public Date toDate()
        Returns the time object as date object.
        Returns:
        the date object
      • toSql

        public Time toSql()
        Returns the time object as SQL time object.
        Returns:
        the SQL time object