Jump to content

C++ Programming/Code/Standard C Library/Functions/ctime

From Wikibooks, open books for an open world

ctime

[edit | edit source]
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