Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Time

The Time class represents a time during a day. Time instances are immutable. The constructors are accessible from scripts.

Fields

hoursintegerRead only. The hour, from 0 to 23.
minutesintegerRead only. The minute, from 0 to 59.
secondsintegerThe second, from 0 to 59.

Methods

init( )

Constructs a new Time instance for the current time.

init(time)

Constructs a new Time instance from the given time.