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

getMeasurementStartTime

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

Function Syntax

long getMeasurementStartTime(long time[]);

Description

Returns details about the absolute time the measurement was started. Note: In CANoe DE product offline mode, the function returns the oldest start time of those stored in the logging files.

Parameters

  • time: An array of type long with at least 8 entries. The entries of the array will be filled with the following information:
    • 0: Milliseconds (0 - 999)
    • 1: Seconds (0 - 59)
    • 2: Minutes (0 - 59)
    • 3: Hours (0 - 23)
    • 4: Day of month (1 - 31)
    • 5: Month (0 - 11)
    • 6: Year (0 - xxx, offset of 1900, e.g. 117 = 2017)
    • 7: Day of week (0 - 6, Sunday is 0)

Return Values

1 if successful, 0 if not (e.g., array too small).

Example

See addTimeToMeasurementStartTime