65,186
社区成员




#include <time.h>
#include <stdio.h>
void main()
{
struct tm xmas = { 0, 0, 8, 1, 1, 112 }; // 01-Feb-2003 08:00:00 GTM 开始
time_t start = mktime( &xmas ) ;
printf("UTC:%d\n",start);
time_t ltime ;
time(<ime);
printf( "time and date:\t %s\n", ctime( <ime ) );
}