/** * 时间工具类 * @author zhongming */ export default class TimeUtil { /** * 格式化时间 * @param time 时间 */ static formatTime(time: number): string; /** * 毫秒转天时分秒 * @param msec 毫秒 */ static convertMsec(msec: number): string; /** * * @param {number} contrastTime 需要比对的时间 * @param {number} beContrastTime 被比对的时间 * @returns {string} 2分钟前、刚刚、1天前、一天后 */ static contrastTime(contrastTime: number, beContrastTime?: number): string; /** * 格式化日期 * @param time 时间 */ static formatDate(time: number): string; }