Due to a CRT bug, if you pass a value into localtime_s() greater than
_MAX__TIME64_T, the program will crash:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=266036
So, I want to range check my data. But _MAX__TIME64_T is not #defined
via #include <ctime>. I have found it only in these files:
...\crt\ctime.h
...\crt\gmtime64.c
...\crt\loctim64.c
(Note that <ctime.h> is not the same as <ctime>.) ctime.h is not in
the default directories for #includes. Thus, they never intended for
it to be available. I could either explicitly #include it, or I could
#define it myself:
#define _MAX__TIME64_T 0x100000000000i64
What is best?