A CTime object represents an absolute time and date. The CTime class incorporates the ANSI time_t data type and its associated run-time functions, including the ability to convert to and from a Gregorian date and 24-hour time.
CTime values are based on universal coordinated time (UCT), which is equivalent to Greenwich mean time (GMT). The local time zone is controlled by the TZ environment variable.
See the Run-Time Library Reference for more information on the time_t data type and the run-time functions that are used by CTime.
A companion class, CTimeSpan, represents a time interval—the difference between two CTime objects.
#include <afx.h>
Run-time functions: asctime, ftime, gmtime, localtime, strftime, time
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 4 bytes. Most member functions are inline.