add: CRUD shift

This commit is contained in:
Muhammad Afif
2025-10-13 10:54:39 +07:00
parent 95189e2014
commit 662038d953
8 changed files with 350 additions and 2 deletions

11
utils/time.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
formattedTime: (timestamp) => {
let date = new Date(timestamp);
let hours = date.getHours().toString().padStart(2, "0");
let minutes = date.getMinutes().toString().padStart(2, "0");
let seconds = date.getSeconds().toString().padStart(2, "0");
let formattedTime = `${hours}:${minutes}:${seconds}`;
return formattedTime;
},
};