This method is not a general purpose date parsing function, and
may not be capable of parsing dates for a specific locale. The date
and time should be in a standard format as outlined in RFC 822,
which describes the basic structure of Internet email messages.
For a description of the date string format, refer to the
FormatDate method.
If the date and time does not include any timezone information,
Coordinated Universal Time (UTC) will be used by default. This is an
important consideration if you use this function to parse input from a
user, because in most cases they will not provide a timezone and will
assume the date and time they enter is for their current timezone.
The value of the bLocalize parameter will only change the
number of seconds offset by the current timezone and does not affect
the value returned in the lpnSeconds parameter. If the date
is localized, the timezone offset will be adjusted for daylight
savings if it was in effect at the time.
Developers are strongly encouraged to use the version of this
function which expects a 64-bit integer to represent the number of
seconds since the epoch. The version which uses a 32-bit integer
limits the representable range to dates before 19 January 2038
(the so-called "Year 2038 problem"). After this date,
32-bit time values will overflow, resulting in incorrect date
calculations and potential failures in software that processes email
message dates. By contrast, the 64-bit integer value matches the
standard time_t type used by modern C/C++ libraries.
This not only eliminates the Year 2038 limitation but also ensures
compatibility with current and future systems, allowing correct
handling of dates both far in the past and well into the future.
Whenever possible, applications should transition to the 64-bit
version of this method to ensure long-term reliability and
portability.