/**
 * parseTime.js
 *
 * @Author: apple
 * @Date: 2018/6/1 18:16
 */

var parseTime = function parseTime(number) {
    if (number && (typeof number === 'string' || typeof number === 'number')) {
        var parseNumber = parseInt(number, 10);
        if (parseNumber < 10) {
            parseNumber = '0' + parseNumber;
        }
        return parseNumber;
    }
};

export default parseTime;