#include <cstdlib>
#include <sstream>
#include <iomanip>
+#ifdef WIN32
+#include <windows.h>
+#else
#include <time.h>
+#endif
+#include <msp/core/except.h>
#include "timezone.h"
#include "units.h"
TIME_ZONE_INFORMATION tzinfo;
DWORD dst=GetTimeZoneInformation(&tzinfo);
if(dst==TIME_ZONE_ID_INVALID)
- throw SystemError("Failed to get time zone information", GetLastError());
+ throw Msp::SystemError("Failed to get time zone information", GetLastError());
int offset=tzinfo.Bias;
if(dst==TIME_ZONE_ID_STANDARD)