helpers.cpp: add shortened strftime() function

taken from martiis neutrino-mp


Origin commit data
------------------
Commit: 672257906e
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-05-29 (Thu, 29 May 2014)

Origin message was:
------------------
- helpers.cpp: add shortened strftime() function

 taken from martiis neutrino-mp
This commit is contained in:
vanhofen
2014-05-29 22:26:30 +02:00
parent 6487275798
commit 8b03b47027
4 changed files with 858 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ std::string getFileName(std::string &file);
std::string getFileExt(std::string &file);
std::string getNowTimeStr(const char* format);
std::string trim(std::string &str, const std::string &trimChars = " \n\r\t");
std::string strftime(const char *format, const struct tm *tm);
time_t toEpoch(std::string &date);
std::string& str_replace(const std::string &search, const std::string &replace, std::string &text);
std::string& htmlEntityDecode(std::string& text);