解釋
函式名: dostounix功能: 轉換日期和時間為UNIX時間格式
用法: long dostounix(struct date *dateptr, struct time *timeptr);
程式例
#include <time.h>#include <stddef.h>
#include <dos.h>
#include <stdio.h>
int 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));
return 0;
}