Set date time linux

2022-03-28
2023-12-29
  • Reinier Geers - 2022-03-28

    How can i set date and time in a linux controller with codesys. For windows i use :
    IF set THEN
    SysTimeRtcConvertDateToUtc(setDate,dwSetTime_local);
    Result_Convert:=SysTimeRtcConvertLocalToUtc(dwTimestampLocal:= dwSetTime_local , pdwTimestampUtc:= dwSetTime );
    setTimestamp := DWORD_TO_DT(dwSetTime);
    SysTimeRtcSet(dwSetTime);
    set:= FALSE;
    END_IF

    But thats not workin by linux

     
  • Reinier Geers - 2023-12-29

    Anyone ?

     

Log in to post a comment.