Class Time

Object
org.apache.spark.streaming.Time
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class Time extends Object implements scala.Product, Serializable
This is a simple class that represents an absolute instant of time. Internally, it represents time as the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. This is the same format as what is returned by System.currentTimeMillis.
See Also:
  • Constructor Details

    • Time

      public Time(long millis)
  • Method Details

    • ordering

      public static scala.math.Ordering<Time> ordering()
    • milliseconds

      public long milliseconds()
    • less

      public boolean less(Time that)
    • lessEq

      public boolean lessEq(Time that)
    • greater

      public boolean greater(Time that)
    • greaterEq

      public boolean greaterEq(Time that)
    • plus

      public Time plus(Duration that)
    • minus

      public Duration minus(Time that)
    • minus

      public Time minus(Duration that)
    • floor

      public Time floor(Duration that)
    • floor

      public Time floor(Duration that, Time zeroTime)
    • isMultipleOf

      public boolean isMultipleOf(Duration that)
    • min

      public Time min(Time that)
    • max

      public Time max(Time that)
    • until

      public scala.collection.immutable.Seq<Time> until(Time that, Duration interval)
    • to

      public scala.collection.immutable.Seq<Time> to(Time that, Duration interval)
    • toString

      public String toString()
      Overrides:
      toString in class Object