Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » convertGPSTimestamp

convertGPSTimestamp

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

void convertGPSTimestamp(dword timestamp, dword& year, byte& month, byte & day, byte & hour, byte & minute, byte & second);

Description

Converts a GPS time stamp into UTC based date and time information.

Parameters

  • timestamp: The GPS time stamp (seconds since 1970-01-01 00:00).
  • year: Receives the year of the time stamp.
  • month: Receives the month of the time stamp (between 1 and 12).
  • day: Receives the day of the time stamp (between 1 and 31).
  • hour: Receives the hour of the time stamp (between 0 and 23).
  • minute: Receives the minute of the time stamp (between 0 and 59).
  • second: Receives the second of the time stamp (between 0 and 59).

Return Values

Example

getGPSTimeString