timestamp
# support
k
timestamp is not displaying time and date . It's just displaying some id like '1726480823477' . How to get time and date ??
v
@Kishore Kumar The timestamp you're seeing, '1726480823477', appears to be in Unix epoch time format, which represents the number of milliseconds since January 1, 1970 (UTC). To convert this timestamp into a human-readable date and time, you can use a programming language or an online converter. If you're looking to convert this timestamp programmatically, here's how you can do it in JavaScript:
Copy code
javascript
const timestamp = 1726480823477;
const date = new Date(timestamp);
console.log(date.toString()); // This will output the date and time in human-readable format
If you need to convert it using another method or require assistance with a different programming language, please let me know, and I'll be happy to help!
You can continue this conversation by mentioning me in the message.
k
Is there any other way to get call time details through end of call report.
@Vapi Is there any other way to get call time details through end of call report.
v
@Kishore Kumar Yes, the end-of-call report should provide you with the necessary details about the call time. When a call ends, the assistant makes a POST request to the Server URL with a body containing the "end-of-call-report" message. This report typically includes the reason the call ended, and it may also contain timestamps indicating when the call started and ended. To get the call time details, you would typically look for fields in the report such as
startTime
and
endTime
, or similar fields that indicate the duration of the call. If these fields are not present in the report you're receiving, it might be necessary to check the documentation or settings of the VAPI to ensure that all relevant call time details are being included in the end-of-call report. If you have access to the system or API that generates the end-of-call report, you might need to configure it to include the desired time details. If you're unsure how to do this or if the information is not available, please ask support for more info on this.
s
hey you can convert the timestamp to datetime object.
you can use call object to get created_at time.
k
How is it done ??
s
ask chatgpt on how to convert timetstamp to datetime object.
3 Views