Time Object |
Top Previous Next |
The time object holds a time object able to express times from 0:00 to 23:59.
Properties
Methods
start()Starts the 24 hour stopwatch. Note that this object can at maximum count 24 hours. restart()Restarts the 24 hour stopwatch. isValid()isValid returns true if the timer countains a valid time. OperatorsTime::+Time / Time::-TimeAdds or subtracts time. Note that time will wrap at either 0 or 24 hours as it cannot give negative numbers or hours beyond 24. To go beyond 24 hours use the Date object and add to that. Time Relational operatorsThe relational operators allow quick comparison between time objects. Examples
This will print
true true RelatedAvailabilityLua |