Time of day like 6pm or 8.30am.
This type contains only information about an abstract time of day without referencing any date or timezone.
You use Time to specify something that has to occur on a specific time of day like “lunch hour starts at 1pm” or “shop opens at 10am”.
no type hierarchy
Attributes | |
hash | Source Codeshared actual Integer hash Implementation compatible with This implementation respect the constraint that if Refines Object.hash |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Enumerable<Other> |
Attributes inherited from: Ordinal<Other> |
Attributes inherited from: ReadableTime |
Methods | |
equals | Source Codeshared actual default Boolean equals(Object other) Two Refines Object.equals |
minus | Source Codeshared formal Time minus(ReadableTimePeriod period) Subtracts a period of time to this time of day value. Result of this operation is another time of day, wrapping around 12 a.m. (midnight) if necessary. |
periodFrom | Source Codeshared formal Period periodFrom(Time start) Returns the period between this and the given time. If this time is before the given time then return zero period. |
periodTo | Source Codeshared formal Period periodTo(Time end) Returns the period between this and the given time. If this time is after the given time then return zero period. |
plus | Source Codeshared formal Time plus(ReadableTimePeriod period) Adds a period of time to this time of day value. Result of this operation is another time of day, wrapping around 12 a.m. (midnight) if necessary. |
rangeTo | Source Codeshared formal TimeRange rangeTo(Time other) Returns the |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Comparable<Other> |
Methods inherited from: Enumerable<Other> |
Methods inherited from: TimeBehavior<Element> |