feat: add a fuck ton of get functions

This commit is contained in:
Twig 2025-07-18 12:56:33 +02:00
parent 58fe9a2eac
commit 69feff6cf8
No known key found for this signature in database
8 changed files with 81 additions and 0 deletions

6
utils/uuidToDate.ts Normal file
View file

@ -0,0 +1,6 @@
export default (uuid: string): Date => {
const timeHex = uuid.substring(0, 8) + uuid.substring(9, 13);
const timestamp = parseInt(timeHex, 16);
return new Date(timestamp);
}