"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.secondToFormatTime = secondToFormatTime;
// 秒转化为时间的格式化字符串
function secondToFormatTime(times) {
  if (times <= 0) return '--';
  var timeStr = '';
  var remain = times;
  var days = Math.floor(remain / (24 * 60 * 60));
  if (days) timeStr += "".concat(days, "\u5929");
  remain = remain % (24 * 60 * 60);
  var hours = Math.floor(remain / (60 * 60));
  if (hours) timeStr += "".concat(hours, "h");
  remain = remain % (60 * 60);
  var minutes = Math.floor(remain / 60);
  if (minutes) timeStr += "".concat(minutes, "min");
  var seconds = remain % 60;
  timeStr += "".concat(seconds, "s");
  return timeStr;
}
//# sourceMappingURL=index.js.map
