"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.getMonthTimeByStr = exports.getWeekTimeByStr = exports.getDayTimeByStr = exports.getBeforeByStr = void 0;
var _DateUtil = require("./DateUtil"),
  getBeforeByStr = function(e, t) {
    e = new Date((0, _DateUtil.strToTime)((0, _DateUtil.dateToHour)((0, _DateUtil.strToTime)(e) + 36e5)));
    return [e.getTime() - 60 * (t + 1) * 60 * 1e3, e.getTime()]
  };
exports.getBeforeByStr = getBeforeByStr;
var getDayTimeByStr = function(e) {
  e = new Date((0, _DateUtil.strToTime)(e)), e = new Date(e.toLocaleDateString()).getTime();
  return [e, e + 864e5]
};
exports.getDayTimeByStr = getDayTimeByStr;
var getWeekTimeByStr = function(e) {
  e = new Date((0, _DateUtil.strToTime)(e)), e = new Date(e.toLocaleDateString()).getTime();
  return [e -= 2592e5, 6048e5 + e]
};
exports.getWeekTimeByStr = getWeekTimeByStr;
var getMonthTimeByStr = function(e) {
  e = new Date((0, _DateUtil.strToTime)(e)), e = new Date(e.toLocaleDateString()).getTime();
  return [e -= 18144e5, 2592e6 + e]
};
exports.getMonthTimeByStr = getMonthTimeByStr;
