js/src/utilities/format.js
/**
     * Converts a number of units into seconds
     * @param  {integer} time  number of units
     * @param  {string} units one of hours, minutes or seconds
     * @return integer time in seconds
     */
Converts a number of units into seconds
@param  {integer} time  number of units
@param  {string} units one of hours, minutes or seconds
@return integer time in seconds
Converts a number of units into seconds @param { integer } time number of units @param { string } units one of hours minutes or seconds @return integer time in seconds
function timeInSeconds(time, units) {
        switch (units) {
            case 'hours':
                time = time * 60;
            case 'minutes':
                time = time * 60;
        }
        return time;
    }
function timeInSeconds ( time , units ) { switch ( units ) { case 'hours' : time = time * 60 ; case 'minutes' : time = time * 60 ; } return time ; }
Converts a number of units into seconds
 @param  {integer} time  number of units
 @param  {string} units one of hours, minutes or seconds
 @return integer time in seconds
Converts a number of units into seconds @param { integer } time number of units @param { string } units one of hours minutes or seconds @return integer time in seconds
// intentional fallthrough. Should accumulate actions