?? mktime.c
字號:
#include <stdio.h>
#include <time.h>
void main(void)
{
time_t seconds;
struct tm time_fields;
time_fields.tm_mday = 4;
time_fields.tm_mon = 7;
time_fields.tm_year = 94;
time_fields.tm_hour = 0;
time_fields.tm_min = 0;
time_fields.tm_sec = 0;
seconds = mktime(&time_fields);
printf("The number of seconds between 7-4-94 and 1-1-70 is %ld\n",
seconds);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -