Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (12 sloc) 601 Bytes
title
Popcorn.util.toSeconds

Popcorn.util.toSeconds( smpte [, fps ] )

Purpose

Convert a SMPTE timestamp to time in seconds

returns a floating point number

Options

  • smpte [String] - a string that contains a valid timestamp in the form of either HH:MM:SS.MMM or HH:MM:SS;FF. Hours and minutes are optional and will default to 0.
  • fps - an optional number specifying the frames per second

Examples

Live demo showing how to convert from timestamp to time in seconds

Something went wrong with that request. Please try again.