mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 16:48:16 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
25 lines
548 B
C
25 lines
548 B
C
/*
|
|
* 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;
|
|
}
|