Zigbee Protocol Controller 1.6.0
ota_time.h File Reference

OTA time interface for C level. More...

#include "time.h"

Go to the source code of this file.

Functions

time_t calculate_utc_current_time_difference (const time_t time_utc)
 Calculate time diffrence between the local time and UTC time. More...
 
time_t get_current_utc_current_time ()
 Returns the current UTC time. More...
 

Detailed Description

OTA time interface for C level.

Function Documentation

◆ calculate_utc_current_time_difference()

time_t calculate_utc_current_time_difference ( const time_t  time_utc)

Calculate time diffrence between the local time and UTC time.

Parameters
time_utctime_t variable time in seconds.
Returns
time_t indicating the difference in seconds since the epoch began (01/01/1970) Positive value indicates that we are ahead the UTC time Negative value indicates that we are behind the UTC time

◆ get_current_utc_current_time()

time_t get_current_utc_current_time ( )

Returns the current UTC time.

Returns
time_t value indicating the number of seconds since the epoch began (01/01/1970)