struct tm tm_isdst disagrees with BST
问题 I'm in the UK. I'm using C++ builder 10.2 with the clang compiler. The following code #include <stdio.h> #include <conio.h> #include <time.h> #ifdef _WIN32 #include <tchar.h> #else typedef char _TCHAR; #define _tmain main #endif int _tmain() { printf("TZ set = %s\r\n",putenv("TZ=Europe/London")==0 ? "true" : "false"); printf("TZ=%s\r\n",getenv("TZ")); for (int dst = 0, year = 2017; year <= 2023; year++) for (int mon = 1; mon <= 12; mon++) for (int mday = 1; mday <= 31; mday++) { struct tm st