ReactOS 0.4.16-dev-340-g0540c21
time.c File Reference
#include <precomp.h>
#include <time.h>
#include "bitsfixup.h"
Include dependency graph for time.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

time_t _time (time_t *ptime)
 

Function Documentation

◆ _time()

time_t _time ( time_t ptime)

Definition at line 12 of file time.c.

13{
14 FILETIME SystemTime;
15 time_t time = 0;
16
17 GetSystemTimeAsFileTime(&SystemTime);
18 time = (time_t)FileTimeToUnixTime(&SystemTime, NULL);
19
20 if (ptime)
21 {
22 *ptime = time;
23 }
24 return time;
25}
#define NULL
Definition: types.h:112
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
Definition: time.c:128
__kernel_time_t time_t
Definition: linux.h:252
__u16 time
Definition: mkdosfs.c:8
static __inline __time64_t FileTimeToUnixTime(const FILETIME *FileTime, USHORT *millitm)
Definition: time.h:14