XDK API  3.6.0
Documentation
Macros | Functions
TimeStamp.c File Reference
#include "XdkCommonInfo.h"
#include "XDK_TimeStamp.h"
#include <stdio.h>
+ Include dependency graph for TimeStamp.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_TIMESTAMP
 
#define NO_OF_DAYS_PER_100_Y   (365*100 + 24)
 
#define NO_OF_DAYS_PER_400_Y   (365*400 + 97)
 
#define NO_OF_DAYS_PER_4_Y   (365*4 + 1)
 
#define SECS_TO_DAYS_FACTOR   (86400LL)
 
#define TIME_OFFSET   (946684800LL + 86400*(31+29))
 
#define TIME_OVERFLOW_INT_MAX_MULTIPLIER   (31622400LL)
 
#define TIME_OVERFLOW_INT_MIN_MULTIPLIER   (31622400LL)
 

Functions

Retcode_T TimeStamp_SecsToTm (int64_t timeInSeconds, struct tm *tm)
 This converts time from seconds to struct tm format. More...
 
Retcode_T TimeStamp_TmToIso8601 (struct tm *tmPtr, char *iso8601Format, uint8_t bufferSize)
 This converts time from struct tm format to ISO 8601 format. More...
 
static void tm_to_realtime (struct tm *tmPtr)
 Convert time to real time. More...
 

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_TIMESTAMP
#define NO_OF_DAYS_PER_100_Y   (365*100 + 24)
#define NO_OF_DAYS_PER_400_Y   (365*400 + 97)
#define NO_OF_DAYS_PER_4_Y   (365*4 + 1)
#define SECS_TO_DAYS_FACTOR   (86400LL)
#define TIME_OFFSET   (946684800LL + 86400*(31+29))
#define TIME_OVERFLOW_INT_MAX_MULTIPLIER   (31622400LL)
#define TIME_OVERFLOW_INT_MIN_MULTIPLIER   (31622400LL)

Function Documentation

static void tm_to_realtime ( struct tm *  tmPtr)
static
Parameters
[in]structtm * tmPtr tm structure pointer

+ Here is the caller graph for this function:


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:41 by doxygen 1.8.8