Tuesday, August 3, 2010

Date and Time in C++

  #include
     #include

     void main( )
     {
          char strDate[9];
          char strTime[9];
          _strdate( strDate);
          printf( "The current date is %s \n", strDate);
         _strtime( strTime);
         printf( "The current time is %s \n", strTime);
      }





ctime (time.h)

C Time Library
This header file contains definitions of functions to get and manipulate date and time information.

Functions

Time manipulation


Conversion:


Macros



types

No comments:

Post a Comment

Health Benefits of Cashews

  Benefits of Cashews. Healthy food is an integral part of healthy body. Regular exercises such as Yoga and healthy diet is important to...