silverwolf-x's picture
download
raw
218 Bytes
import formatDistanceToNowStrict from "date-fns/formatDistanceToNowStrict";
export default function distanceToNow(dateTime: number | Date) {
return formatDistanceToNowStrict(dateTime, {
addSuffix: true,
});
}

Xet Storage Details

Size:
218 Bytes
·
Xet hash:
7fd2a0dfeadd9d8e20ce68260fbd045677b08de6ab4444579ec87ed0e7408671

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