mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 05:08:45 +08:00
Update
This commit is contained in:
18
time_util.h
Normal file
18
time_util.h
Normal 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
|
||||
Reference in New Issue
Block a user