c78697655332e463ae7b27fe33d8458bc15bc637
2 * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
3 * PROJECT: ReactOS CRT library
4 * FILE: lib/sdk/crt/time/localtime.c
5 * PURPOSE: Implementation of localtime, localtime_s
6 * PROGRAMERS: Timo Kreuzer
10 #include "bitsfixup.h"
13 localtime_s(struct tm
* _tm
, const time_t *ptime
)
16 /* Validate parameters */
20 _invalid_parameter(NULL
,
33 extern char _tz_is_set
;
36 localtime(const time_t *ptime
)
41 /* Check for invalid time value */
51 /* Check for overflow */
53 /* Correct for timezone */
56 /* Correct for daylight saving */