怎么用c语言写一个获得服务器动态时间的代码
求教
程序代码:
#include "time.h" void main () { time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); printf ( "\007The current date/time is: %s", asctime (timeinfo) ); exit(0); }