log .csv timestamp

xawme88
2020-11-10
2020-11-10
  • xawme88 - 2020-11-10

    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.

     
  • kislov - 2020-11-10

    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

     
    πŸ‘
    2

    Last edit: kislov 2020-11-10
    • Morberis

      Morberis - 2020-11-10

      Great explanation.

       
    • xawme88 - 2020-11-10

      Great! Thank you very much!

       

Log in to post a comment.