le_clock.h
Go to the documentation of this file.
18 * plus microseconds, and does not stop when the system is suspended (i.e., the clock continues to21 * Absolute time is given as time since the Epoch, 1970-01-01 00:00:00 +0000 (UTC) and is provided30 * characteristics, the relative time is useful for measuring the time between two or more events.32 * is stored. The relative time between these two events can always be calculated as B-A, and will72 * - Add new objects and/or APIs to allow converting time to other formats, e.g. Linux broken down81 //--------------------------------------------------------------------------------------------------88 //--------------------------------------------------------------------------------------------------93 //--------------------------------------------------------------------------------------------------97 //--------------------------------------------------------------------------------------------------105 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------122 //--------------------------------------------------------------------------------------------------132 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------265 * If the formatted date/time string does not fit in the destination buffer, then the contents of273 //--------------------------------------------------------------------------------------------------286 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------320 * Generate a printable string representation of a given absolute date/time value as a local time327 * If the formatted date/time string does not fit in the destination buffer, then the contents of334 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------361 //--------------------------------------------------------------------------------------------------368 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------400 //--------------------------------------------------------------------------------------------------le_result_t le_clk_GetLocalDateTimeString(const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)bool le_clk_GreaterThan(le_clk_Time_t timeA, le_clk_Time_t timeB)le_result_t le_clk_GetUTCDateTimeString(const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)le_result_t le_clk_SetUTCDateTimeString(const char *formatSpecStrPtr, const char *srcStrPtr)bool le_clk_Equal(le_clk_Time_t timeA, le_clk_Time_t timeB)le_result_t le_clk_SetAbsoluteTime(le_clk_Time_t absoluteTime)le_clk_Time_t le_clk_Sub(le_clk_Time_t timeA, le_clk_Time_t timeB)le_clk_Time_t le_clk_GetAbsoluteTime(void)le_result_t le_clk_ConvertToUTCString(le_clk_Time_t time, const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)Definition: le_clock.h:98le_clk_Time_t le_clk_Multiply(le_clk_Time_t timeA, int scaleFactor)le_result_t le_clk_ConvertToLocalTimeString(le_clk_Time_t time, const char *formatSpecStrPtr, char *destStrPtr, size_t destSize, size_t *numBytesPtr)le_clk_Time_t le_clk_Add(le_clk_Time_t timeA, le_clk_Time_t timeB)le_result_t le_clk_ConvertToTime(const char *formatSpecStrPtr, const char *srcStrPtr, le_clk_Time_t *timePtr)le_clk_Time_t le_clk_GetRelativeTime(void)