Timestamp in recording

Announcements

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
lalit
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Hi,

Please explain how the timestamp values are created in the output file .txt. 

I want to match the timestamp of doppler radar data with the video data. Do I have to use the entire timestamp value (for eg., Timestamp = 1678281503 ). Please see the attached txt file. 

Thanks !

0 Likes
1 Solution
Siddharth_H
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 50 likes received

Hi @lalit ,

The time stamp, for example 1678281503 is the number of seconds elapsed since January 1, 1970. This timestamp is called Unix epoch or Unix time or POSIX time or Unix timestamp.  

To calculate the date time out of this value, you can simply use the inbuilt functions available for the language you are using. For example in python, you can use datetime library to convert this to human readable date and time. See the sample code below to do it.

Siddharth_1-1685114015137.png

You can copy the code below.

 

 

import datetime  
epoch_time = 1678281503
date_time = datetime.datetime.fromtimestamp(epoch_time)  
print("Date and time=", date_time )

 

 

Or you can also write your own algorithm to convert it.

Thank you, Siddharth.

View solution in original post

0 Likes
1 Reply
Siddharth_H
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 50 likes received

Hi @lalit ,

The time stamp, for example 1678281503 is the number of seconds elapsed since January 1, 1970. This timestamp is called Unix epoch or Unix time or POSIX time or Unix timestamp.  

To calculate the date time out of this value, you can simply use the inbuilt functions available for the language you are using. For example in python, you can use datetime library to convert this to human readable date and time. See the sample code below to do it.

Siddharth_1-1685114015137.png

You can copy the code below.

 

 

import datetime  
epoch_time = 1678281503
date_time = datetime.datetime.fromtimestamp(epoch_time)  
print("Date and time=", date_time )

 

 

Or you can also write your own algorithm to convert it.

Thank you, Siddharth.

0 Likes