asctime

asctime, asctime_s

Defined in header <time.h>
char* asctime( const struct tm* time_ptr );
(1)
errno_t asctime_s(char *buf, rsize_t bufsz, const struct tm *time_ptr);
(2) (since C11)
1) Converts given calendar time tm to a textual representation of the following fixed 25-character form: Www Mmm dd hh:mm:ss yyyy\n
  • Www - three-letter English abbreviated day of the week from time_ptr->tm_wday, one of Mon, Tue, 登录查看完整内容