ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

time.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.