1 /* 2 * Copyright (c) 2025 IAR Systems AB 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief Declares additional time related functions based on POSIX 10 */ 11 12 #ifndef ZEPHYR_LIB_LIBC_IAR_INCLUDE_TIME_H_ 13 #define ZEPHYR_LIB_LIBC_IAR_INCLUDE_TIME_H_ 14 15 #include <zephyr/toolchain.h> 16 #include_next <time.h> 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 char *asctime_r(const struct tm *ZRESTRICT tp, char *ZRESTRICT buf); 23 char *ctime_r(const time_t *clock, char *buf); 24 struct tm *gmtime_r(const time_t *ZRESTRICT timep, struct tm *ZRESTRICT result); 25 struct tm *localtime_r(const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif /* ZEPHYR_LIB_LIBC_IAR_INCLUDE_TIME_H_ */ 32