C Tutorial/time.h/ctime — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:32, 25 мая 2010
ctime
Item Value Header file time.h Declaration char *ctime(const time_t *time); Return returns a time in string, whose form is
day month year hours:minutes:seconds year\n\0
<source lang="cpp">#include <time.h>
#include <stdio.h> int main(void) { time_t lt; lt = time(NULL); printf(ctime(<)); return 0; }</source>