import { timeInterval } from "./interval.js";
import { durationMinute, durationSecond } from "./duration.js";
const timeMinute = timeInterval((e) => {
	e.setTime(e - e.getMilliseconds() - e.getSeconds() * durationSecond);
}, (e, i) => {
	e.setTime(+e + i * durationMinute);
}, (e, i) => (i - e) / durationMinute, (e) => e.getMinutes());
timeMinute.range;
const utcMinute = timeInterval((e) => {
	e.setUTCSeconds(0, 0);
}, (e, i) => {
	e.setTime(+e + i * durationMinute);
}, (e, i) => (i - e) / durationMinute, (e) => e.getUTCMinutes());
utcMinute.range;
export { timeMinute, utcMinute };
