asctime [C++ Reference]
Keywords: c,date,asctime
Date: 2008-10-14T15:42:00-0700

[[asctime]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## asctime

Syntax:

        #include <ctime>
        char *asctime( const struct tm *ptr );

The function asctime() converts the time in the struct 'ptr' to a character string of the following format:

         day month date hours:minutes:seconds year

An example:

         Mon Jun 26 12:03:53 2000

Related Topics: clock, ctime, difftime, gmtime, localtime, mktime, time

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •