new

new Time( )

Creates a Time object set to the current time and date on the users device.

new Time( year, month, day )

Creates a Time object set to the date given. The seconds, hours, minutes and milliseconds are all set to 0.

new Time( year, month, day, hour, minutes, seconds )

Creates a new Time with the given date and time. The number of milliseconds is set to 0.

new Time( year, month, day, hour, minutes, seconds, milliseconds )

The full list of values you can set when creating a new Time object. With this constructor you can specify the date, time and milliseconds.