first commit

This commit is contained in:
creations 2025-04-05 01:28:29 -04:00
commit b11c87a506
Signed by: creations
GPG key ID: 8F553AA4320FC711
26 changed files with 1782 additions and 0 deletions

6
src/helpers/char.ts Normal file
View file

@ -0,0 +1,6 @@
export function timestampToReadable(timestamp?: number): string {
const date: Date =
timestamp && !isNaN(timestamp) ? new Date(timestamp) : new Date();
if (isNaN(date.getTime())) return "Invalid Date";
return date.toISOString().replace("T", " ").replace("Z", "");
}