Time.addMillis

Overview | Methods | Fields | This Package | All Packages

Time.addMillis

Creates a new Time object that represents the number of milliseconds after the time that this Time object represents.

Syntax

public Time addMillis( long interval )

Parameters

interval

A long value that represents the number of milliseconds to add to the current time.

Return Value

Returns a Time object representing the new time.

Remarks

Time objects cannot be altered. Use the addMillis method to create a new Time object whose time is based on the current Time object but incremented by the number of milliseconds specified in interval.

See Also   addHours, addMinutes, addSeconds