function s(t, u, c, r, a) {
  var o = t.setHour(u, c);
  return o = t.setMinute(o, r), o = t.setSecond(o, a), o;
}
function w(t, u, c) {
  if (!c)
    return u;
  var r = u;
  return r = t.setHour(r, t.getHour(c)), r = t.setMinute(r, t.getMinute(c)), r = t.setSecond(r, t.getSecond(c)), r;
}
function h(t, u, c, r, a, o) {
  var n = Math.floor(t / r) * r;
  if (n < t)
    return [n, 60 - a, 60 - o];
  var v = Math.floor(u / a) * a;
  if (v < u)
    return [n, v, 60 - o];
  var M = Math.floor(c / o) * o;
  return [n, v, M];
}
function D(t, u) {
  var c = t.getYear(u), r = t.getMonth(u) + 1, a = t.getEndDate(t.getFixedDate("".concat(c, "-").concat(r, "-01"))), o = t.getDate(a), n = r < 10 ? "0".concat(r) : "".concat(r);
  return "".concat(c, "-").concat(n, "-").concat(o);
}
export {
  D as getLastDay,
  h as getLowerBoundTime,
  w as setDateTime,
  s as setTime
};
