import { timeInterval } from "./interval.js";
import { durationHour, durationMinute, durationSecond } from "./duration.js";
const timeHour = timeInterval((e) => {
	e.setTime(e - e.getMilliseconds() - e.getSeconds() * durationSecond - e.getMinutes() * durationMinute);
}, (e, a) => {
	e.setTime(+e + a * durationHour);
}, (e, a) => (a - e) / durationHour, (e) => e.getHours());
timeHour.range;
const utcHour = timeInterval((e) => {
	e.setUTCMinutes(0, 0, 0);
}, (e, a) => {
	e.setTime(+e + a * durationHour);
}, (e, a) => (a - e) / durationHour, (e) => e.getUTCHours());
utcHour.range;
export { timeHour, utcHour };
