Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

<ctime>

Defines the macros traditionally defined in the Standard C Library header <time.h>.

#if <TRADITIONAL C HEADERS>
   #include <time.h>
namespace std {
   using ::asctime; 
   using ::clock; 
   using ::clock_t; 
   using ::ctime;
   using ::difftime; 
   using ::gmtime; 
   using ::localtime;
   using ::mktime; 
   using ::size_t;
   using ::strftime; 
   using ::time;
   using ::time_t; 
   using ::tm;
}
#endif

Including this header also ensures that the names declared with external linkage in the Standard C Library header are declared in the std namespace. In this implementation, the names may or may not also be declared in the global namespace, depending on the specific translation environment.

Show:
© 2018 Microsoft