FormattedTimeToSeconds

From Moving Light Assistant
Revision as of 16:19, 27 December 2015 by Andyv wiki admin (Talk | contribs) (Added Page.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

FormattedTimeToSeconds( timeString )

timeString is a string. This is a formatted time string, i.e. 1m 3s.
Returns a string. This is a string value of the formatted time string in seconds

This function is only available in MLA v1.2.1 Beta 6 onwards.

This function is used to convert a formatted time string into a string representing the value in seconds.

Formatted Time String Examples...
36s
1m 3s
1h 5m 4s

Code Example...
a = FormattedTimeToSeconds("1h 3s")

The variable a would be assigned the string 63