X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/adda4265c88314b4c78e2d46129ca09534931ede..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 af0f89a1..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,6 +150,8 @@ 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);