mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-31 21:59:22 +03:00
Update interface_influxdb.cpp
This commit is contained in:
@@ -73,7 +73,7 @@ void InfluxDBPublish(std::string _key, std::string _content, std::string _timest
|
|||||||
// generate timestamp (TODO: parse result timestamp passed as string and convert it to POSIX timestamp?)
|
// generate timestamp (TODO: parse result timestamp passed as string and convert it to POSIX timestamp?)
|
||||||
// Format: #define PREVALUE_TIME_FORMAT_OUTPUT "%Y-%m-%dT%H:%M:%S%z"
|
// Format: #define PREVALUE_TIME_FORMAT_OUTPUT "%Y-%m-%dT%H:%M:%S%z"
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
strptime(_timestamp.c_str(), "PREVALUE_TIME_FORMAT_OUTPUT", &tm);
|
strptime(_timestamp.c_str(), PREVALUE_TIME_FORMAT_OUTPUT, &tm);
|
||||||
time_t t = mktime(&tm); // t is now your desired time_t
|
time_t t = mktime(&tm); // t is now your desired time_t
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user