Lingo Dictionary > G-K > HMStoFrames() |
![]() ![]() ![]() |
HMStoFrames()
Syntax
HMStoFrames(
hms
,
tempo
,
dropFrame
,
fractionalSeconds
)
Description
Function; converts movies measured in hours, minutes, and seconds to the equivalent number of frames or converts a number of hours, minutes, and seconds into time if you set the tempo
argument to 1 (1 frame = 1 second).
![]() |
|
||||||||||||
![]() |
|
||||||||||||
![]() |
|
||||||||||||
![]() |
|
Example
This statement determines the number of frames in a 1-minute, 30.1-second movie when the tempo is 30 frames per second. Neither the dropFrame
nor fractionalSeconds
arguments is used.
put HMStoFrames(" 00:01:30.10 ", 30, FALSE, FALSE) -- 2710
Example
This statement converts 600 seconds into minutes:
>> put framesToHMS(600, 1,0,0) >> -- " 00:10:00.00 "
Example
This statement converts an hour and a half into seconds:
>> put HMStoFrames("1:30:00", 1,0,0) >> -- 5400
See also
![]() ![]() ![]() |