Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

asctime_r - convert date and time to string (thread-safe)

&pagelevel(4)&pagelevel

Syntax

#include <time.h>

char *asctime_r(const struct tm *tm, char *buf);

Description asctime_r() converts a time specification pointed to by tm into the same form as


asctime() and writes the result into the data area pointed to by buf (with at least 26 bytes).

Return val.

Pointer to the string that buf points to


if successful.

EOVEFLOW

In case of an error. errno is set to indicate the error.

See also

asctime(), ctime(), ctime_r(), localtime(), localtime_r(), time().