jquery.trend.js
function(s) {
    s = s.replace(/\s/, "");
    var v = window.parseFloat(s);

    return s.match(/[^m]s$/i)
      ? v * 1000
      : v;
  }
function(s) {
    s = s.replace(/\s/, "");
    var v = window.parseFloat(s);

    return s.match(/[^m]s$/i)
      ? v * 1000
      : v;
  }
function ( s ) { s = s . replace ( / \s / , "" ) ; var v = window . parseFloat ( s ) ; return s . match ( / [^m]s$ / i ) ? v * 1000 : v ; }
Parses a CSS time value into milliseconds.
Parses a CSS time value into milliseconds .