asctime : 将时间格式化为字符串
Synopsis
Section titled “Synopsis”#include <time.h>char *asctime(const struct tm *clock);char *asctime_r(const struct tm *clock, char *buf);```### Description
将 clock 处的时间值格式化为 Wed Jun 15 11:38:07 1988 形式的字符串
该字符串在静态缓冲区中生成;每次调用 asctime 都会覆盖先前调用生成的字符串。### Returns
指向包含格式化时间戳的字符串的指针。
---
**权威来源**: BUSMASTER DITA help source `asctime.dita`, compiled into `BUSMASTER.CHM` with the application.