xxxxxxxxxx
// Assuming the timestamp is in milliseconds
function convertTimestampToRealTime(timestamp) {
const date = new Date(timestamp);
const hours = date.getHours();
const minutes = date.getMinutes();
const seconds = date.getSeconds();
return `${hours}:${minutes}:${seconds}`;
}
const timestamp = 1638864460000; // Example timestamp value
const realTime = convertTimestampToRealTime(timestamp);
console.log(realTime); // Output: "15:41:0"