跳轉到內容

C++ 程式設計/程式碼/標準 C 庫/函式/mktime

來自華夏公益教科書,自由的教科書
語法
#include <ctime>
time_t mktime( struct tm *time );

mktime() 函式將 time 中的本地時間轉換為日曆時間並返回。如果發生錯誤,則返回 -1。

相關主題
asctime - ctime - gmtime - time
華夏公益教科書