SysTimeRtcConvertLocalToHighRes
(FUN)
FUNCTION SysTimeRtcConvertLocalToHighRes : RTS_IEC_RESULT
<description> This function converts the time given by time structure [Localtime] into a High Resolution Time of format SysTime [UTC].
</description>
<errorcode name=”RTS_RESULT Result” TYPE=”ERR_OK”>DATE can be converted</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_FAILED”>Date failed to convert</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_NOTIMPLEMENTED”>Conversion is not available on the target</errorcode> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>
- InOut:
Scope
Name
Type
Comment
Return
SysTimeRtcConvertLocalToHighRes
RTS_IEC_RESULT
Inout
pDate
<param name=”pDate” type=”IN”>Structure format [Localtime]</param>
pTimestamp
SYSTIME
<param name=”pTimestamp” type=”OUT”>Milliseconds since 1.1.1970 00:00:000 [UTC]</param>