src/tweene.js
function convertTime(value, fromUnit, toUnit)
{
    if(fromUnit != toUnit && value !== 0)
    {
        return value * (toUnit == 's'? 0.001 : 1000);
    }
    return value;
}
function convertTime(value, fromUnit, toUnit)
{
    if(fromUnit != toUnit && value !== 0)
    {
        return value * (toUnit == 's'? 0.001 : 1000);
    }
    return value;
}
function convertTime ( value , fromUnit , toUnit ) { if ( fromUnit != toUnit && value !== 0 ) { return value * ( toUnit == 's' ? 0.001 : 1000 ) ; } return value ; }
convert time from seconds to milliseconds and vice versa

@param {number} value
@param {string} fromUnit - 's' | 'ms'
@param {string} toUnit - 's' | 'ms'
@returns {Number}
convert time from seconds to milliseconds and vice versa