mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 21:28:50 +08:00
19 lines
332 B
C++
19 lines
332 B
C++
#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
|