Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentime.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: LGPL, See LGPL.txt in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/sdk/crt/time/time.c 00005 * PURPOSE: Implementation of _time (_time32, _time64) 00006 * PROGRAMER: Timo Kreuzer 00007 */ 00008 #include <precomp.h> 00009 #include <time.h> 00010 #include "bitsfixup.h" 00011 00012 time_t _time(time_t* ptime) 00013 { 00014 FILETIME SystemTime; 00015 time_t time = 0; 00016 00017 GetSystemTimeAsFileTime(&SystemTime); 00018 time = (time_t)FileTimeToUnixTime(&SystemTime, NULL); 00019 00020 if (ptime) 00021 { 00022 *ptime = time; 00023 } 00024 return time; 00025 } Generated on Fri May 25 2012 04:16:33 for ReactOS by
1.7.6.1
|