橘子味的心
标题:C库函数 - time()

C库函数 - time()

#include <stdio.h>

#include <time.h>



int main () {

   time_t seconds;



   seconds = time(NULL);

   printf("Hours since January 1, 1970 = %ld\n", seconds/3600);



   return(0);

}

目录

分类