Class Date

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>

    public class Date
    extends java.util.Date
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Date()  
      Date​(long secondsSinceUnixEpoch)  
      Date​(java.util.Date date)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long secondsSinceUnixEpoch()  
      java.lang.String toString()  
      • Methods inherited from class java.util.Date

        after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Date

        public Date()
      • Date

        public Date​(@NonNull
                    java.util.Date date)
      • Date

        public Date​(long secondsSinceUnixEpoch)
    • Method Detail

      • secondsSinceUnixEpoch

        public long secondsSinceUnixEpoch()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.util.Date