I've had a lot of trouble with MSDN documentation lately. In fact, it's
weird. Many times today it will say "Content not found" then if I click
next time. I also get a lot of links that say that the content is not
"Content not found" page. It's very frustrating.
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:vv2f84tmu3micgd4t0f6l4p750fugfvb8b@4ax.com...
Here's a snapshot of my CTime documentation:
====================================================
class CTime
Remarks
CTime does not have a base class.
A CTime object represents an absolute time and date.
CTime values are based on coordinated universal time (UTC), which is
equivalent to
Greenwich mean time (GMT). The local time zone is controlled by the TZ
environment
variable.
When creating a CTime object, set the nDST parameter to 0 to indicate
that standard time
is in effect, or to a value greater than 0 to indicate that daylight
savings time is in
effect, or to a value less than zero to have the C run-time library code
compute whether
standard time or daylight savings time is in effect. tm_isdst is a
required field. If not
set, its value is undefined and the return value from mktime is
unpredictable. If timeptr
points to a tm structure returned by a previous call to asctime, gmtime,
or localtime, the
tm_isdst field contains the correct value.
A companion class, CTimeSpan, represents a time interval.
The CTime and CTimeSpan classes are not designed for derivation. Because
there are no
virtual functions, the size of CTime and CTimeSpan objects is exactly 8
bytes. Most member
functions are inline.
Note The upper date limit is January 18, 2038. For a wider range of
dates, see
COleDateTime.
For more information on using CTime, see the articles Date and Time, and
Time Management
in the Run-Time Library Reference.
*****************************************
Older docs - looks vaguely familiar. The more current (v90) MSDN changes
the note to
<snip>
Note:
The upper date limit is 12/31/3000. The lower limit is 1/1/1970 12:00:00
AM GMT.
For more information about using CTime, see the articles Date and Time,
and Time Management in the Run-Time Library Reference.
Note:
The CTime structure changed from MFC 7.1 to MFC 8.0. If you serialize a
CTime structure by using the operator << under MFC 8.0 or a later version,
the resulting file will not be readable on older versions of MFC.
</snip>
Mark
--
Mark Salsbery
Microsoft MVP - Visual C++
*****************************************
===================================================
On Wed, 23 Jul 2008 10:37:15 -0700, "Mark Salsbery [MVP]"
<MarkSalsbery[MVP]@newsgroup.nospam> wrote:
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:uppe84t3o7kv2fbc22pil0db8tjfpknejb@4ax.com...
It is interesting to note that while the CTime documentation gives a
partial answer to the
upper bound, it does not mention the lower bound at all, apparently
thinking this is
obvious. I've added this to my MSDN Errors And Omissions document.
Hi Joe,
The first page of the CTime docs states:
"The upper date limit is 12/31/3000. The lower limit is 1/1/1970 12:00:00
AM
GMT."
Cheers,
Mark
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm