20 lines
507 B
C++
20 lines
507 B
C++
//
|
|
// Created by zgj on 2024/4/29.
|
|
//
|
|
|
|
#ifndef METERMQTT_TOOLUTILS_H
|
|
#define METERMQTT_TOOLUTILS_H
|
|
|
|
#include <string>
|
|
|
|
namespace ToolUtils{
|
|
std::string getTimeString(bool isLocalTime);
|
|
std::string getUtcTimeString(bool isLocalTime);
|
|
std::string getTimeStringWithFomat(bool isLocalTime);
|
|
uint64_t getUtcTime(bool isLocalTime);
|
|
bool isCSTZone();
|
|
bool subString(std::string srcStr, std::string subStr,std::string &resultStr);
|
|
std::string genUUID();
|
|
}
|
|
#endif //METERMQTT_TOOLUTILS_H
|