#include #include int main() { time_t tmt; struct tm gm_time; char bdate[128]; printf("Size of long = %d bytes, size of long long = %d bytes.\n",sizeof(long),sizeof(long long)); tmt = time(NULL); printf("wms: ctime = %s",ctime(&tmt)); //gm_time = gmtime(&tmt); strftime(bdate,128,"%a, %d %b %Y %T GMT",localtime(&tmt)); printf("strftime = %s.\n",bdate); printf("wms: asctime = %s",asctime(localtime(&tmt))); }