Release 951124
[wine/multimedia.git] / win32 / time.c
blob29b20ba8356b46a2e254bb5f134972258979d49b
1 /*
2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
5 */
7 #include <string.h>
8 #include <time.h>
9 #include <unistd.h>
10 #include "windows.h"
11 #include "winerror.h"
12 #include "kernel32.h"
13 #include "stddebug.h"
14 #include "debug.h"
16 /***********************************************************************
17 * GetTimeZoneInformation (KERNEL32.302)
19 DWORD GetTimeZoneInformation(LPTIME_ZONE_INFORMATION tzinfo)
21 time_t gmt, lt;
23 memset(tzinfo, 0, sizeof(TIME_ZONE_INFORMATION));
25 gmt = time(NULL);
26 lt = mktime(localtime(&gmt));
27 tzinfo->Bias = (gmt - lt) / 60;
28 tzinfo->StandardBias = 0;
29 tzinfo->DaylightBias = -60;
31 return TIME_ZONE_ID_UNKNOWN;