C2xConvertMod32TsToUTC
CAPL Functions » Car2x » C2xConvertMod32TsToUTCValid for: CANoe DE
Note
Your CANoe DE product considers specific leap seconds for the conversion.
Function Syntax
Description
This function converts a mod32 time stamp in milliseconds since a reference time into a UTC time stamp as an array of type long with separate values for year, month, day, and so on.Parameters
- mod32Ts: Time stamp in milliseconds since the reference time.
- refTime: The following reference times can be set:
- 0: 2004-01-01 (2004-01-01T00:00:00,000 UTC)
- 1: 2010-01-01 (2010-01-01T00:00:00,000 UTC).
- buffersize: Size of the buffer to be filled with the UTC time stamp.
- time: Array of long which contains the UTC time in the following format:
- 0: milliseconds (0..999)
- 1: seconds (0..60)
- 2: minutes (0..60)
- 3: hours (0..24)
- 4: day of month (1..31)
- 5: month (0..11)
- 6: year (starting with 1900)
- 7: day of week (0..7)
- 8: day of year (0..365)
Return Values
- 0: Success
- -1: Error