C2xConvertTimeFromMSSinceUTC
Valid for: CANoe DE NoteYour CANoe DE product considers specific leap seconds for the conversion.
Function Syntax
Description
This function converts a time stamp in milliseconds since a reference time into a UTC time stamp in string format (form 1) or as long array with separate values for year, month, day and so on (form 2).Parameters
- milliseconds: Time stamp in milliseconds since 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 in string format: “YYYY-MM-DDThh:mm:ss,ddd UTC”.
- buffer: Buffer to be filled with the UTC time stamp in string format.
- time: Array of long which contains the UTC time stamp 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