Time object¶
myTime = new Time()
Description¶
An object representing a time. Internally, the time is computed in ticks
; there are 254016000000 ticks per second. That time can be accessed in different representations, including as a timecode string.
Attributes¶
Time.seconds¶
myTime.seconds
Description¶
The time value, expressed in seconds.
Type¶
Number.
Time.ticks¶
myTime.ticks
Description¶
The time value, expressed in ticks.
Type¶
String.
Methods¶
Time.getFormatted()¶
myTime.getFormatted(frameRate, displayFormat)
Description¶
Returns the value of the Time
passed, as a string, formatted in the specified display format.
Parameters¶
Parameter |
Type |
Description |
---|---|---|
|
Time object with a duration of a single frame of the frame rate to be used. |
|
|
Integer |
The display format to use. One of:
|
Returns¶
String.
Time.setSecondsAsFraction()¶
myTime.setSecondsAsFraction(numerator, denominator)
Description¶
Sets the Time object to the result of dividing the numerator by the denominator.
Parameters¶
Both the numerator and the denominator are integers.
Returns¶
Boolean; true
if successful.