Interface Time
- All Superinterfaces:
Comparable<Time>, OsidPrimitive, OsidPrimitive, Serializable, Time
The Time interface defines a time.
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the number of attoseconds of the femtoseconds 0-999.longGets the number of femtoseconds of the picosecond 0-999.Gets the granularity of this time.longIf the granularity of the time equalsgetGranularity(), then the multiplier is 1.longgetHour()Gets the hour of the day 0-23.longGets the number of microquectoseconds of the milliquectosecond 0-999.longGets the number of microseconds of the second 0-999.longGets the number of milliquectoseconds of the quectosecond 0-999.longGets the number of milliseconds in this second 0-999.longGets the minute of the hour 0-59.longGets the number of nanoseconds of the microsecond 0-999.longGets the number of picoseconds of the nanosecond 0-999.longGets the number of planckseconds of the microquectoseconds.longGets the number of quectoseconds of the rontosecond 0-999.longGets the number of rontoseconds of the yoctosecond 0-999.longGets the second of the minute 0-59.Gets the time type.longGets the number of yoctoseconds of the picosecond 0-999.longGets the number of zeptoseconds of the attosecond 0-999.Methods inherited from interface OsidPrimitive
toStringMethods inherited from interface Time
compareTo, denormalizeTime, equals, hashCode, isExclusive, isGreater, isInclusive, isLessModifier and TypeMethodDescriptionintCompares this Time with the specified Time to determine the natural order.Time[]Returns an interval based on this Time derived by its granularity.booleanDetermines if the givenTimeis equal to this one.inthashCode()Returns a hash code value for thisTimebased on the types, values, and granularity.booleanisExclusive(Time t) Tests if the range of this Time, as specified by its granularity, does not overlap the given Time.booleanTests if this Time is greater than the given Time.booleanisInclusive(Time t) Tests if the range of this Time, as specified by its granularity, includes the given Time ranged by its grabularity.booleanTests 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 (1e-3) 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 (1e-6) 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 (1e-9) 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 (1e-12) 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 (1e-15) 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 (1e-18) 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 (1e-21) 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 (1e-24) of a second. This is getting quite small.- Returns:
- the yoctoseconds of the picosecond
- Compliance:
mandatory- This method must be implemented.
-
getRontoseconds
long getRontoseconds()Gets the number of rontoseconds of the yoctosecond 0-999. A rontosecond is one octillionth (1e-27) of a second.- Returns:
- the rontoseconds of the yoctosecond
- Compliance:
mandatory- This method must be implemented.
-
getQuectoseconds
long getQuectoseconds()Gets the number of quectoseconds of the rontosecond 0-999. A quectosecond is one nonillionth (1e-30) of a second.- Returns:
- the quectoseconds of the rontosecond
- Compliance:
mandatory- This method must be implemented.
-
getMilliquectoseconds
long getMilliquectoseconds()Gets the number of milliquectoseconds of the quectosecond 0-999. A milliquectosecond is one decillionth (1e-33) of a second.- Returns:
- the milliquectoseconds of the quectosecond
- Compliance:
mandatory- This method must be implemented.
-
getMicroquectoseconds
long getMicroquectoseconds()Gets the number of microquectoseconds of the milliquectosecond 0-999. A microquectosecond is one undecillionth (1e-36) of a second.- Returns:
- the microquectoseconds of the milliquectosecond
- Compliance:
mandatory- This method must be implemented.
-
getPlanckseconds
long getPlanckseconds()Gets the number of planckseconds of the microquectoseconds. A plancksecond is 53.91247 quattuordecillionths (5.391247e-44) of a second.- Returns:
- the planckseconds of the microquectosecond
- Compliance:
mandatory- This method must be implemented.
-
getGranularity
DateTimeResolution getGranularity()Gets the granularity of this time. The granularity indicates the resolution of the clock (the tick). 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 equalsgetGranularity(), 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.
-