?? dosunix.c
字號:
#include <stdio.h>
#include <dos.h>
#include <time.h>
void main(void)
{
struct time dostime;
struct date dosdate;
time_t unix_format;
struct tm *local;
getdate(&dosdate);
gettime(&dostime);
unix_format = dostounix(&dosdate, &dostime);
local = localtime(&unix_format);
printf("UNIX time: %s\n", asctime(local));
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -