4 #include <Windows32/Structures.h>
5 #include <Windows32/Functions.h>
9 TIME_ZONE_INFORMATION tzinfo;
14 printf("System Time = %d %d %d %d %d %d %d %d\n",
25 t = GetTimeZoneInformation( &tzinfo );
27 printf("time zone info return = %d\n", t);
29 printf("Bias = %ld\n", tzinfo.Bias);
31 printf("Standard Name = ");
33 while ( tzinfo.StandardName[i] != 0 ) {
34 printf("%c", tzinfo.StandardName[i]);
39 printf("System Time = %d %d %d %d %d %d %d %d\n",
40 tzinfo.StandardDate.wYear,
41 tzinfo.StandardDate.wMonth,
42 tzinfo.StandardDate.wDayOfWeek,
43 tzinfo.StandardDate.wDay,
44 tzinfo.StandardDate.wHour,
45 tzinfo.StandardDate.wMinute,
46 tzinfo.StandardDate.wSecond,
47 tzinfo.StandardDate.wMilliseconds
50 printf("Standard Bias = %d\n", tzinfo.StandardBias);
52 printf("Daylight Name = ");
54 while ( tzinfo.DaylightName[i] != 0 ) {
55 printf("%c", tzinfo.DaylightName[i]);
60 printf("Daylight Date = %d\n", tzinfo.DaylightDate);
62 printf("Daylight Bias = %ld\n", tzinfo.DaylightBias);