X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ddd28cc3e77e1c5dcff0a57d6d61a949aa9ecb3e..d2651fcd0809db517807aab2e259d07ad0878f4e:/stglibs/common.lib/include/stg/common.h diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index f46c922a..8e82d2a8 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -31,6 +31,7 @@ #include #else #include +#include // NAME_MAX #endif #include #include @@ -149,9 +150,12 @@ bool WriteAll(int sd, const void * source, size_t size); std::string ToPrintable(const std::string & src); +std::string formatTime(time_t value); +time_t readTime(const std::string & value); //----------------------------------------------------------------------------- int str2x(const std::string & str, int32_t & x); int str2x(const std::string & str, uint32_t & x); +int str2x(const std::string & str, double & x); #ifndef WIN32 int str2x(const std::string & str, int64_t & x); int str2x(const std::string & str, uint64_t & x);