first commit
All checks were successful
Code quality checks / biome (push) Successful in 7s

This commit is contained in:
creations 2025-05-24 09:42:42 -04:00
commit d554599768
Signed by: creations
GPG key ID: 8F553AA4320FC711
11 changed files with 334 additions and 0 deletions

8
src/lib/char.ts Normal file
View file

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