This commit is contained in:
2021-12-16 22:13:30 +08:00
parent 751373e0e4
commit 556ab106f4
9 changed files with 345 additions and 2 deletions

18
time_util.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _UTIL_TIME_UTIL_H
#define _UTIL_TIME_UTIL_H
#include <time.h>
#if _WIN32
#include <Windows.h>
#endif
namespace time_util {
#if _WIN32
/**
* @brief Convert from time_t to FILETIME
* @param t UNIX Timestamp
* @param pft Result
*/
void time_t_to_file_time(time_t t, LPFILETIME pft);
#endif
}
#endif