C语言获得系统当前日期和时间

    技术2022-05-18  17

    #include <stdio.h> #include <time.h> int main() { time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); printf ( "/007The current date/time is: %s", asctime (timeinfo)); }


    最新回复(0)