16template <
typename TimeType,
typename Character,
typename TimeBufferType>
19 TimeBufferType*
const times
74template <
typename TimeType,
typename TimeBufferType>
84 TimeBufferType default_times;
88 time_traits::time(&default_times.modtime);
89 default_times.actime = default_times.modtime;
90 times = &default_times;
94 if (time_traits::localtime_s(&tm_value, &
times->modtime) != 0)
118 if (time_traits::localtime_s(&tm_value, &
times->actime) != 0)
151 return common_futime<__time32_t>(fh,
times);
156 return common_futime<__time64_t>(fh,
times);
#define _CHECK_FH_RETURN(handle, errorcode, retexpr)
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
static DOUBLE local_time(DOUBLE time, DateInstance *date)
BOOL WINAPI SetFileTime(IN HANDLE hFile, CONST FILETIME *lpCreationTime OPTIONAL, CONST FILETIME *lpLastAccessTime OPTIONAL, CONST FILETIME *lpLastWriteTime OPTIONAL)
BOOL WINAPI SystemTimeToFileTime(IN CONST SYSTEMTIME *lpSystemTime, OUT LPFILETIME lpFileTime)
BOOL WINAPI TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION lpTimeZoneInformation, LPSYSTEMTIME lpLocalTime, LPSYSTEMTIME lpUniversalTime)
static const struct encodedFiletime times[]
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
_Check_return_opt_ _CRTIMP int __cdecl _close(_In_ int _FileHandle)
int __cdecl _utime64(char const *const file_name, __utimbuf64 *const times)
static int __cdecl common_utime(Character const *const file_name, TimeBufferType *const times)
int __cdecl _utime32(char const *const file_name, __utimbuf32 *const times)
int __cdecl _futime32(int const fh, __utimbuf32 *const times)
static int __cdecl common_futime(int const fh, TimeBufferType *times)
int __cdecl _wutime32(wchar_t const *const file_name, __utimbuf32 *const times)
int __cdecl _futime64(int const fh, __utimbuf64 *const times)
int __cdecl _wutime64(wchar_t const *const file_name, __utimbuf64 *const times)