14 lines
260 B
C
14 lines
260 B
C
#include <stdio.h>
|
|
#include <time.h>
|
|
|
|
void main()
|
|
{
|
|
time_t time_of_day;
|
|
auto char buf[26];
|
|
auto struct tm tmbuf;
|
|
|
|
time_of_day = time( NULL );
|
|
_localtime( &time_of_day, &tmbuf );
|
|
printf( "It is now: %s", _asctime( &tmbuf, buf ) );
|
|
}
|