mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
25
sdk/lib/crt/time/time.c
Normal file
25
sdk/lib/crt/time/time.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* COPYRIGHT: LGPL, See LGPL.txt in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/time/time.c
|
||||
* PURPOSE: Implementation of _time (_time32, _time64)
|
||||
* PROGRAMER: Timo Kreuzer
|
||||
*/
|
||||
#include <precomp.h>
|
||||
#include <time.h>
|
||||
#include "bitsfixup.h"
|
||||
|
||||
time_t _time(time_t* ptime)
|
||||
{
|
||||
FILETIME SystemTime;
|
||||
time_t time = 0;
|
||||
|
||||
GetSystemTimeAsFileTime(&SystemTime);
|
||||
time = (time_t)FileTimeToUnixTime(&SystemTime, NULL);
|
||||
|
||||
if (ptime)
|
||||
{
|
||||
*ptime = time;
|
||||
}
|
||||
return time;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue