DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
403 Bytes
import {timeInterval} from "./interval.js";
import {durationSecond} from "./duration.js";
export const second = timeInterval((date) => {
date.setTime(date - date.getMilliseconds());
}, (date, step) => {
date.setTime(+date + step * durationSecond);
}, (start, end) => {
return (end - start) / durationSecond;
}, (date) => {
return date.getUTCSeconds();
});
export const seconds = second.range;