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_next <time.h>
16 
17 #include <zephyr/posix/posix_time.h>
18 #include <zephyr/toolchain.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 char      *asctime_r(const struct tm *ZRESTRICT tp, char *ZRESTRICT buf);
25 char      *ctime_r(const time_t *clock, char *buf);
26 struct tm *gmtime_r(const time_t *ZRESTRICT timep, struct tm *ZRESTRICT result);
27 struct tm *localtime_r(const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* ZEPHYR_LIB_LIBC_IAR_INCLUDE_TIME_H_ */
34