跳轉到內容

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

來自 Wikibooks,開放世界中的開放書籍
語法
#include <ctime>
char *asctime( const struct tm *ptr );

asctime() 函式將結構體 'ptr' 中的時間轉換為以下格式的字串:

day month date hours:minutes:seconds year

一個例子

Mon Jun 26 12:03:53 2000
相關主題
clock - ctime - difftime - gmtime - localtime - mktime - time
華夏公益教科書