Class Time

  • All Implemented Interfaces:
    java.io.Serializable

    public class Time
    extends java.lang.Object
    implements java.io.Serializable
    Helper class to mimic the datetime.time Python object (holds a hours/minute/seconds/microsecond time).
    Author:
    Irmen de Jong (irmen@razorvine.net)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Time​(int h, int m, int s, int microsecs)  
      Time​(long milliseconds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • hours

        public int hours
      • minutes

        public int minutes
      • seconds

        public int seconds
      • microseconds

        public int microseconds
    • Constructor Detail

      • Time

        public Time​(int h,
                    int m,
                    int s,
                    int microsecs)
      • Time

        public Time​(long milliseconds)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object