Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

DT with milliseconds

learnetk
2016-06-01
2016-12-13
  • learnetk - 2016-06-01

    Hi Everyone,
    Is there a function that could give me DT with MS ex : DT#2016-06-02-06:00:00:200.

    Thanks

     
  • rickj - 2016-06-01

    Install the SysTime library. Open the Library Manager and click on the "Add Library" tab. In the popup dialog select the SysTime library and add it (Advanced->System->SysLibs-SysTime). Check out the high resolution function blocks.

     
  • learnetk - 2016-06-22

    Thanks..

    That really helped .

     
  • rickj - 2016-06-22

    You're welcome. Glad I could help.

     
  • tgodinho - 2016-12-13

    Hello,
    this is really good.

    I'm using to get current System time

    SysTimeRtcHighResGet(pTimeStamp);
    SysTimeRtcConvertHighResToDate(pTimeStamp,pTDate);

    There is a quick way to convert it to string?
    I need to to the conversion to write it into a MySQL server.
    Thank you!

     

Log in to post a comment.