TickTime

Properties

NameTypeAccessMin VersionDescription
seconds
number
R
25.0
Get the TickTime in seconds
ticks
string
R
25.0
Get the TickTime in ticks as a string
ticksNumber
number
R
25.0
Get the TickTime in ticks as a number

Static Methods

createWithFrameAndFrameRate

25.0

TickTime

Constructs a TickTime object with a frame and a frame rate.

Parameters

NameTypeDescription
frameCount
number
-
frameRate
-

createWithSeconds

25.0

TickTime

Constructs a TickTime object with seconds.

Parameters

NameTypeDescription
seconds
number
-

createWithTicks

25.0

TickTime

Constructs a TickTime object with ticks as a string.

Parameters

NameTypeDescription
ticks
string
-

Instance Methods

add

25.0

TickTime

Add another TickTime to this one and return it. This TickTime is not modified.

Parameters

NameTypeDescription
tickTime
-

alignToFrame

25.0

TickTime

alignToFrame will return a TickTime that is aligned to the nearest frame boundary less than the given time, for a given frame rate by rounding any fractional portion.

Parameters

NameTypeDescription
frameRate
-

alignToNearestFrame

25.0

TickTime

AlignToNearestFrame will return a TickTime that is aligned to the nearest frame boundary greater than or less than the given time, for a given frame rate by rounding any fractional portion.

Parameters

NameTypeDescription
frameRate
-

divide

25.0

TickTime

Divide this TickTime by a divisor and return it. In case of a division by zero, TIME_INVALID is returned. This TickTime is not modified.

Parameters

NameTypeDescription
divisor
number
-

equals

25.0

boolean

Returns true if the given TickTime is equal to the TickTime object

Parameters

NameTypeDescription
tickTime
-

multiply

25.0

TickTime

Multiply this TickTime with a factor and return it. This TickTime is not modified.

Parameters

NameTypeDescription
factor
number
-

subtract

25.0

TickTime

Subtract another TickTime from this one and return it. This TickTime is not modified.

Parameters

NameTypeDescription
tickTime
-

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.