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

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

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

## ctime

Syntax:

        #include <ctime>
        char *ctime( const time_t *time );

The ctime() function converts the calendar time time to local time of the format:

         day month date hours:minutes:seconds year

using ctime() is equivalent to

         asctime( localtime( tp ) );

Related Topics: asctime, clock, gmtime, localtime, mktime, time

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