I don't understand the date-time (timestamp) column of the .csv log file from CodeSYS runtime system.
I attach an example of file generated 2020/11/10 10:53 h but the timestamp data is not valid or I don't understand it. The date-time from device log using the developement system is ok.
Hi,
I don't understand the date-time (timestamp) column of the .csv log file from CodeSYS runtime system.
I attach an example of file generated 2020/11/10 10:53 h but the timestamp data is not valid or I don't understand it. The date-time from device log using the developement system is ok.
Thanks.
Seems like it's Unixtime, but in Β΅s instead of typical ms (maybe because: <timestamp>rtc high resolution</timestamp> ?)
So you need divide value by 1000 and convert with Unixtime converter.
For example:
01605001540799 / 1000 = 1605001540.8 =~ 1605001540
https://www.unixtimestamp.com/index.php
Last edit: kislov 2020-11-10
Great explanation.
Great! Thank you very much!