


//#region src/utils/timestamp.ts
function timestamp() {
	let time = Date.now();
	const bytes = [];
	for (let i = 0; i < 8; i++) {
		const byte = time & 255;
		bytes.push(byte);
		time = (time - byte) / 256;
	}
	return Uint8Array.from(bytes).reverse();
}
/**
* Returns the current time in seconds
*/
function nowInSeconds() {
	return Math.floor(Date.now() / 1e3);
}
function addSecondsToDate(date, seconds) {
	return new Date(date.getTime() + seconds * 1e3);
}
function dateToSeconds(date) {
	return Math.floor(date.getTime() / 1e3);
}

//#endregion
exports.addSecondsToDate = addSecondsToDate;
exports.dateToSeconds = dateToSeconds;
exports.default = timestamp;
exports.nowInSeconds = nowInSeconds;