X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a637d472ffa2023dd0748557f9ef343d7138c2f0..e39f173d25ae650ee843e3d1c311abe9c1cb5ee9:/stglibs/common.lib/include/stg/common.h?ds=inline diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index a20c3d9f..d404e013 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -33,6 +33,7 @@ #include #include #include +#include // NAME_MAX #include // uid_t, gid_t #include // mode_t @@ -148,6 +149,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);