-
dostounix
鎖定
功 能是轉換日期和時間為UNIX時間格式。
- 外文名
- dostounix
- 類 別
- 函數名
- 功 能
- 轉換日期和時間為UNIX時間格式
- 用 法
- long dostounix
函數名: 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;
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:8次歷史版本
- 最近更新: Ef01ya1