/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ftime.c
* PURPOSE: Implementation of asctime(), _asctime_s()
+/*
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
+ * PROJECT: ReactOS CRT library
+ * FILE: lib/sdk/crt/time/bitsfixup.h
+ * PURPOSE: definitions for different time_t versions
+ * PROGRAMERS: Timo Kreuzer
+ */
#if defined(_USE_EXPLITIT_32BIT_TIME) || defined(_USE_EXPLITIT_64BIT_TIME)
#undef _timeb
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/clock.c
* PURPOSE: Implementation of clock()
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ctime.c
* PURPOSE: Implementation of ctime, _ctime_s
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ctime32.c
* PURPOSE: Implementation of _ctime32()
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ctime64.c
* PURPOSE: Implementation of _ctime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/difftime.c
* PURPOSE: Implementation of difftime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/difftime32.c
* PURPOSE: Implementation of _difftime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/difftime64.c
* PURPOSE: Implementation of _difftime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ftime.c
* PURPOSE: Deprecated BSD library call
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ftime32.c
* PURPOSE: Implementation of _ftime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ftime64.c
* PURPOSE: Implementation of _ftime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/futime.c
* PURPOSE: Implementation of _futime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/futime32.c
* PURPOSE: Implementation of _futime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/futime64.c
* PURPOSE: Implementation of _futime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/gmtime.c
* PURPOSE: Implementation of gmtime, _gmtime32, _gmtime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/localtime.c
* PURPOSE: Implementation of localtime, localtime_s
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/localtime32.c
* PURPOSE: Implementation of _localtime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/localtime64.c
* PURPOSE: Implementation of _localtime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/mktime.c
* PURPOSE: Implementation of mktime, _mkgmtime
}
*ptm = *ptm2;
+ /* Finally adjust by the difference to GMT in seconds */
+ time += _timezone;
+
return time;
}
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS CRT library
- * FILE: lib/msvcrt/time/strtime.c
+ * FILE: lib/sdk/crt/time/strtime.c
* PURPOSE: Fills a buffer with a formatted date representation
* PROGRAMER: Ariadne
* UPDATE HISTORY:
+/*
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
+ * PROJECT: ReactOS CRT library
+ * FILE: lib/sdk/crt/time/strftime.c
+ * PURPOSE:
+ * PROGRAMER:
+ */
#include <precomp.h>
#include <tchar.h>
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
- * FILE: lib/msvcrt/time/strtime.c
+ * FILE: lib/sdk/crt/time/strtime.c
* PURPOSE: Fills a buffer with a formatted time representation
* PROGRAMER: Ariadne
* UPDATE HISTORY:
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * 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 (_tim32, _tim64)
+/*
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
+ * PROJECT: ReactOS CRT library
+ * FILE: lib/sdk/crt/time/time32.c
+ * PURPOSE:
+ * PROGRAMER:
+ */
#define _USE_EXPLITIT_32BIT_TIME
#include "time.c"
+/*
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
+ * PROJECT: ReactOS CRT library
+ * FILE: lib/sdk/crt/time/time64.c
+ * PURPOSE:
+ * PROGRAMER:
+ */
#define _USE_EXPLITIT_64BIT_TIME
#include "time.c"
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/timezone.c
* PURPOSE: Implementation of time zone functions
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/ctime.c
* PURPOSE: Implementation of ctime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/utime.c
* PURPOSE: Implementation of utime, _wutime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/utime32.c
* PURPOSE: Implementation of _utime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/utime64.c
* PURPOSE: Implementation of _utime64
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wasctime.c
* PURPOSE: Implementation of _wasctime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wcsftime.c
* PURPOSE: Implementation of _wcsftime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wctime.c
* PURPOSE: Implementation of _wctime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wctime32.c
* PURPOSE: Implementation of _wctime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wctime64.c
* PURPOSE: Implementation of _Wctime64
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS CRT library
- * FILE: lib/msvcrt/time/strtime.c
+ * FILE: lib/sdk/crt/time/strtime.c
* PURPOSE: Fills a buffer with a formatted date representation
* PROGRAMER: Ariadne
* UPDATE HISTORY:
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS CRT library
- * FILE: lib/msvcrt/time/strtime.c
+ * FILE: lib/sdk/crt/time/strtime.c
* PURPOSE: Fills a buffer with a formatted time representation
* PROGRAMER: Ariadne
* UPDATE HISTORY:
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wutime.c
* PURPOSE: Implementation of _wutime
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wutime32.c
* PURPOSE: Implementation of _wutime32
/*
- * COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/wutime64.c
* PURPOSE: Implementation of _wutime64