< C++ Programming < Code < Standard C Library < Functions
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
This article is issued from
Wikibooks.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.