lib/srt.js
function(timestamp) {
        if (!timestamp) {
            return;
        }
        //TODO check this
        //var secondsPerStamp = 1.001,
        var timesplit = timestamp.replace(',', ':').split(':');
        return (parseInt(timesplit[0], 10) * 3600 +
            parseInt(timesplit[1], 10) * 60 +
            parseInt(timesplit[2], 10) +
            parseInt(timesplit[3], 10) / 1000) * 1000 * 1000;

    }
function(timestamp) {
        if (!timestamp) {
            return;
        }
        //TODO check this
        //var secondsPerStamp = 1.001,
        var timesplit = timestamp.replace(',', ':').split(':');
        return (parseInt(timesplit[0], 10) * 3600 +
            parseInt(timesplit[1], 10) * 60 +
            parseInt(timesplit[2], 10) +
            parseInt(timesplit[3], 10) / 1000) * 1000 * 1000;

    }
function ( timestamp ) { if ( ! timestamp ) { return ; } //TODO check this //var secondsPerStamp = 1.001, var timesplit = timestamp . replace ( ',' , ':' ) . split ( ':' ) ; return ( parseInt ( timesplit [ 0 ] , 10 ) * 3600 + parseInt ( timesplit [ 1 ] , 10 ) * 60 + parseInt ( timesplit [ 2 ] , 10 ) + parseInt ( timesplit [ 3 ] , 10 ) / 1000 ) * 1000 * 1000 ; }
translates timestamp to microseconds
@function
@param {string} timestamp - string timestamp from srt file
@public
translates timestamp to microseconds