ktongue's picture
download
raw
796 Bytes
import {timeInterval} from "./interval.js";
export const timeMonth = timeInterval((date) => {
date.setDate(1);
date.setHours(0, 0, 0, 0);
}, (date, step) => {
date.setMonth(date.getMonth() + step);
}, (start, end) => {
return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
}, (date) => {
return date.getMonth();
});
export const timeMonths = timeMonth.range;
export const utcMonth = timeInterval((date) => {
date.setUTCDate(1);
date.setUTCHours(0, 0, 0, 0);
}, (date, step) => {
date.setUTCMonth(date.getUTCMonth() + step);
}, (start, end) => {
return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
}, (date) => {
return date.getUTCMonth();
});
export const utcMonths = utcMonth.range;

Xet Storage Details

Size:
796 Bytes
·
Xet hash:
0c6ed616b91c56dd40b2dbedaf37005871f144dc1f04fbe41112c0348e41f56e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.