|
Unify Framework Lib 1.7.0
|
Time API for OTA POSIX specific. More...
#include <time.h>#include <string>Go to the source code of this file.
Functions | |
| time_t | calculate_utc_time_from_rfc_3339 (const std::string &date_time) |
| Conversion from date string to UTC time in seconds. More... | |
| std::string | get_utc_time_string_from_utc_time (time_t time_input_utc) |
| Conversion from time to string to UTC time. More... | |
Time API for OTA POSIX specific.
This API allows conversion of date-time strings to UTC time as an absolute time measure.
| time_t calculate_utc_time_from_rfc_3339 | ( | const std::string & | date_time | ) |
Conversion from date string to UTC time in seconds.
| date_time | date-time string in ISO8601 RFC 3339 format image. |
| std::invalid_argument | unable to parse time string. |
| std::string get_utc_time_string_from_utc_time | ( | time_t | time_input_utc | ) |
Conversion from time to string to UTC time.
| time_input_utc | time_t variable time in seconds. |