POSIX C Language Support (reentrant) option group.
More...
|
| char * | asctime_r (const struct tm *ZRESTRICT tm, char *ZRESTRICT buf) |
| | Convert broken-down time to a string (thread-safe version of asctime()).
|
| |
| char * | ctime_r (const time_t *clock, char *buf) |
| | Convert a time_t to a string (thread-safe version of ctime()).
|
| |
| struct tm * | gmtime_r (const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result) |
| | Convert a time_t to UTC broken-down time (thread-safe version of gmtime()).
|
| |
| struct tm * | localtime_r (const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result) |
| | Convert a time_t to local broken-down time (thread-safe version of localtime()).
|
| |
POSIX C Language Support (reentrant) option group.
◆ asctime_r()
| char * asctime_r |
( |
const struct tm *ZRESTRICT |
tm, |
|
|
char *ZRESTRICT |
buf |
|
) |
| |
◆ ctime_r()
| char * ctime_r |
( |
const time_t * |
clock, |
|
|
char * |
buf |
|
) |
| |
◆ gmtime_r()
| struct tm * gmtime_r |
( |
const time_t *ZRESTRICT |
timer, |
|
|
struct tm *ZRESTRICT |
result |
|
) |
| |
Convert a time_t to UTC broken-down time (thread-safe version of gmtime()).
- Parameters
-
| timer | Pointer to the time_t value. |
| result | Caller-supplied storage for the result. |
- Returns
result on success, or NULL on failure.
◆ localtime_r()
| struct tm * localtime_r |
( |
const time_t *ZRESTRICT |
timer, |
|
|
struct tm *ZRESTRICT |
result |
|
) |
| |
Convert a time_t to local broken-down time (thread-safe version of localtime()).
- Parameters
-
| timer | Pointer to the time_t value. |
| result | Caller-supplied storage for the result. |
- Returns
result on success, or NULL on failure.