Zigbee Protocol Controller 1.6.0
ota_time.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
23#ifndef OTA_TIME_HPP
24#define OTA_TIME_HPP
25
26#include <time.h>
27#include <string>
28
39time_t calculate_utc_time_from_rfc_3339(const std::string &date_time);
40
48std::string get_utc_time_string_from_utc_time(time_t time_input_utc);
49
50#endif //OTA_TIME_HPP
time_t calculate_utc_time_from_rfc_3339(const std::string &date_time)
Conversion from date string to UTC time in seconds.
std::string get_utc_time_string_from_utc_time(time_t time_input_utc)
Conversion from time to string to UTC time.