ReactOS  0.4.15-dev-4914-g2220e56
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.


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;
17  GetSystemTimeAsFileTime(&SystemTime);
18  time = (time_t)FileTimeToUnixTime(&SystemTime, NULL);
20  if (ptime)
21  {
22  *ptime = time;
23  }
24  return time;
25 }
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
Definition: time.c:128
__u16 time
Definition: mkdosfs.c:366
static __inline __time64_t FileTimeToUnixTime(const FILETIME *FileTime, USHORT *millitm)
Definition: time.h:14
__kernel_time_t time_t
Definition: linux.h:252
#define NULL
Definition: types.h:112

Referenced by _futime().