tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
#include <ctime>
#include <iomanip>
#include <sstream>
#include <string>
Go to the source code of this file.
Namespaces | |
tgbotxx | |
tgbotxx::DateTimeUtils | |
Namespace contains useful Date Time related utility functions. | |
Functions | |
static std::string | tgbotxx::DateTimeUtils::toString (const std::time_t &time, const std::string_view &format="%Y-%m-%d %H:%M:%S") |
Converts an std::time_t to a string date time with a specific format. More... | |
static std::time_t | tgbotxx::DateTimeUtils::fromString (const std::string &dateTimeStr, const std::string_view &format="%Y-%m-%d %H:%M:%S") |
Converts a string date time with a specific format to an std::time_t. More... | |
static std::string | tgbotxx::DateTimeUtils::now (const std::string_view &format="%Y-%m-%d %H:%M:%S") |
returns current date and time as a string with a specific format More... | |
static std::string | tgbotxx::DateTimeUtils::currentDateTime (const std::string_view &format="%Y-%m-%d %H:%M:%S") |