Lingo Dictionary > D-F > framesToHMS() |
![]() ![]() ![]() |
framesToHMS()
Syntax
framesToHMS(
frames
,
tempo
,
dropFrame
,
fractionalSeconds
)
Description
Function; converts the specified number of frames to their equivalent length in hours, minutes, and seconds. This function is useful for predicting the actual playtime of a movie or controlling a video playback device.
![]() |
|
![]() |
|
![]() |
|
![]() |
|
The resulting string uses the form sHH:MM:SS.FFD
, where:
s |
A character is used if the time is less than zero, or a space if the time is greater than or equal to zero. |
HH |
Hours. |
MM |
Minutes. |
SS |
Seconds. |
FF |
|
D |
|
Example
This statement converts a 2710-frame, 30 frame-per-second movie. The dropFrame
and fractionalSeconds
arguments are both turned off:
put framesToHMS(2710, 30, FALSE, FALSE) -- " 00:01:30.10 "
See also
![]() ![]() ![]() |