Interface Time

All Superinterfaces:
Comparable<Time>, OsidPrimitive, OsidPrimitive, Serializable, Time

public interface Time extends OsidPrimitive, Time

The Time interface defines a time.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the number of attoseconds of the femtoseconds 0-999.
    long
    Gets the number of femtoseconds of the picosecond 0-999.
    Gets the granularity of this time.
    long
    If the granularity of the time equals getGranularity() , then the multiplier is 1.
    long
    Gets the hour of the day 0-23.
    long
    Gets the number of microseconds of the second 0-999.
    long
    Gets the number of milliseconds in this second 0-999.
    long
    Gets the minute of the hour 0-59.
    long
    Gets the number of nanoseconds of the microsecond 0-999.
    long
    Gets the number of picoseconds of the nanosecond 0-999.
    long
    Gets the number of Plancks of the vatoseconds.
    long
    Gets the second of the minute 0-59.
    Gets the time type.
    long
    Gets the number of undaseconds of the vatosecond 0-999.
    long
    Gets the number of vatoseconds of the xoxxosecond 0-999.
    long
    Gets the number of weebleseconds of the xoxxosecond 0-999.
    long
    Gets the number of xoxxoseconds of the yoctosecond 0-999.
    long
    Gets the number of yoctoseconds of the picosecond 0-999.
    long
    Gets the number of zeptoseconds of the attosecond 0-999.

    Methods inherited from interface OsidPrimitive

    toString
    Modifier and Type
    Method
    Description
    Returns a string representation of this OsidPrimitive.

    Methods inherited from interface Time

    compareTo, denormalizeTime, equals, hashCode, isExclusive, isGreater, isInclusive, isLess
    Modifier and Type
    Method
    Description
    int
    Compares this Time with the specified Time to determine the natural order.
    Returns an interval based on this Time derived by its granularity.
    boolean
    Determines if the given Time is equal to this one.
    int
    Returns a hash code value for this Time based on the types, values, and granularity.
    boolean
    Tests if the range of this Time, as specified by its granularity, does not overlap the given Time.
    boolean
    Tests if this Time is greater than the given Time.
    boolean
    Tests if the range of this Time, as specified by its granularity, includes the given Time ranged by its grabularity.
    boolean
    Tests if this Time is less than the given Time.
  • Method Details

    • getTimeType

      Type getTimeType()
      Gets the time type.
      Returns:
      the time type
      Compliance:
      mandatory - This method must be implemented.
    • getHour

      long getHour()
      Gets the hour of the day 0-23.
      Returns:
      the hour of the day
      Compliance:
      mandatory - This method must be implemented.
    • getMinute

      long getMinute()
      Gets the minute of the hour 0-59.
      Returns:
      the minute of the hour
      Compliance:
      mandatory - This method must be implemented.
    • getSecond

      long getSecond()
      Gets the second of the minute 0-59.
      Returns:
      the second of the minute
      Compliance:
      mandatory - This method must be implemented.
    • getMilliseconds

      long getMilliseconds()
      Gets the number of milliseconds in this second 0-999. A millisecond is one thousandth of a second.
      Returns:
      the milliseconds of the second
      Compliance:
      mandatory - This method must be implemented.
    • getMicroseconds

      long getMicroseconds()
      Gets the number of microseconds of the second 0-999. A microsecond is one millionth of a second.
      Returns:
      the micrseconds of the millisecond
      Compliance:
      mandatory - This method must be implemented.
    • getNanoseconds

      long getNanoseconds()
      Gets the number of nanoseconds of the microsecond 0-999. A nanosecond is one billionth of a second.
      Returns:
      the nanoseconds of the microsecond
      Compliance:
      mandatory - This method must be implemented.
    • getPicoseconds

      long getPicoseconds()
      Gets the number of picoseconds of the nanosecond 0-999. A picosecond is one trillionth of a second.
      Returns:
      the picoseconds of the nanosecond
      Compliance:
      mandatory - This method must be implemented.
    • getFemtoseconds

      long getFemtoseconds()
      Gets the number of femtoseconds of the picosecond 0-999. A femtosecond is one quadrillionth of a second.
      Returns:
      the femtoseconds of the picosecond
      Compliance:
      mandatory - This method must be implemented.
    • getAttoseconds

      long getAttoseconds()
      Gets the number of attoseconds of the femtoseconds 0-999. An attosecond is one quintillionth of a second.
      Returns:
      the attoseconds of the femtosecond
      Compliance:
      mandatory - This method must be implemented.
    • getZeptoseconds

      long getZeptoseconds()
      Gets the number of zeptoseconds of the attosecond 0-999. A zeptosecond is one sextillionth of a second.
      Returns:
      the zeptoseconds of the attosecond
      Compliance:
      mandatory - This method must be implemented.
    • getYoctoseconds

      long getYoctoseconds()
      Gets the number of yoctoseconds of the picosecond 0-999. A yoctosecond is one septillionth of a second. This is getting quite small.
      Returns:
      the yoctoseconds of the picosecond
      Compliance:
      mandatory - This method must be implemented.
    • getXoxxoseconds

      long getXoxxoseconds()
      Gets the number of xoxxoseconds of the yoctosecond 0-999. A xoxxosecond is one octillionth of a second. We're going with Rudy Rucker here.
      Returns:
      the xoxxoseconds of the yoctosecond
      Compliance:
      mandatory - This method must be implemented.
    • getWeebleseconds

      long getWeebleseconds()
      Gets the number of weebleseconds of the xoxxosecond 0-999. A weeblesecond is one nonillionth of a second.
      Returns:
      the weebleseconds of the xoxxoseconds
      Compliance:
      mandatory - This method must be implemented.
    • getVatoseconds

      long getVatoseconds()
      Gets the number of vatoseconds of the xoxxosecond 0-999. A vatosecond is one decillionth of a second.
      Returns:
      the vatoseconds of the weeblesecond
      Compliance:
      mandatory - This method must be implemented.
    • getUndaseconds

      long getUndaseconds()
      Gets the number of undaseconds of the vatosecond 0-999. An undasecond is one unadecillionth of a second.
      Returns:
      the undaseconds of the vatosecond
      Compliance:
      mandatory - This method must be implemented.
    • getPlanckSeconds

      long getPlanckSeconds()
      Gets the number of Plancks of the vatoseconds. A Planck is 10 quattuordecillionths of a second.
      Returns:
      the plancks of the undasecond
      Compliance:
      mandatory - This method must be implemented.
    • getGranularity

      DateTimeResolution getGranularity()
      Gets the granularity of this time. The granularity indicates the resolution of the clock. More precision than what is specified in this method cannot be inferred from the available data.
      Returns:
      granularity
      Compliance:
      mandatory - This method must be implemented.
    • getGranularityMultiplier

      long getGranularityMultiplier()
      If the granularity of the time equals getGranularity() , then the multiplier is 1. This method may return a different number when the granularity differs from one of the defined resolutions.
      Returns:
      granularity multiplier
      Compliance:
      mandatory - This method must be implemented.