dostouni.c
来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 17 行
C
17 行
#include <time.h>
#include <stddef.h>
#include <dos.h>
#include <stdio.h>
void main(void)
{
time_t t;
struct time d_time;
struct date d_date;
struct tm *local;
getdate(&d_date);
gettime(&d_time);
t = dostounix(&d_date, &d_time);
local = localtime(&t);
printf("Time and Date: %s\n", asctime(local));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?