nl_tokens: Parse the given str and return milliseconds .
pl_tokens: function parse$3 ( str ) { str = String ( str ) ; if ( str . length > 100 ) { return ; } var match = / ^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$ / i . exec ( str ) ; if ( ! match ) { return ; } var n = parseFloat ( match [ 1 ] ) ; var type = ( match [ 2 ] || 'ms' ) . toLowerCase ( ) ; switch ( type ) { case 'years' : case 'year' : case 'yrs' : case 'yr' : case 'y' : return n * y$3 ; case 'days' : case 'day' : case 'd' : return n * d$4 ; case 'hours' : case 'hour' : case 'hrs' : case 'hr' : case 'h' : return n * h$3 ; case 'minutes' : case 'minute' : case 'mins' : <mask> 'min' : case 'm' : return n * m$3 ; case 'seconds' : case 'second' : case 'secs' : case 'sec' : case 's' : return n * s$3 ; case 'milliseconds' : case 'millisecond' : case 'msecs' : case 'msec' : case 'ms' : return n ; default : return undefined ; } }