1
0

Add entities package

This commit is contained in:
Jose
2025-03-13 14:16:50 +01:00
parent b5561dea70
commit f00c9cdac0
14 changed files with 195 additions and 6 deletions

View File

@@ -8,4 +8,12 @@ const timestampToDate = (timestamp) => {
return date.toLocaleDateString();
}
export { timestampToTime, timestampToDate };
const formatTime = (date) => {
if (date.length === 8) {
return date.slice(0,5);
} else {
return `0${date.slice(0,3)}`;
}
}
export { timestampToTime, timestampToDate, formatTime };