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”.
Inherited Attributes |
Attributes inherited from: Object hash, string |
Attributes inherited from: Enumerable<Other> integerValue |
Attributes inherited from: Ordinal<Other> predecessor, successor |
Attributes inherited from: ReadableTime |
Methods | |
minus | Source Code 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 Code Returns the period between this and the given time. If this time is before the given time then return zero period. |
periodTo | Source Code Returns the period between this and the given time. If this time is after the given time then return zero period. |
plus | Source Code 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 Code Returns the TimeRange between this and given Time. |
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: Comparable<Other> compare |
Methods inherited from: TimeBehavior<Element> |