xref: /nrf52832-nimble/rt-thread/components/libc/compilers/minilibc/time.h (revision 042d53a763ad75cb1465103098bb88c245d95138)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  */
9 #ifndef __TIME_H__
10 #define __TIME_H__
11 
12 #include <sys/time.h>
13 
14 time_t mktime(struct tm * const t);
15 
16 char *asctime(const struct tm *timeptr);
17 char *ctime(const time_t *timep);
18 struct tm* localtime(const time_t* t);
19 
20 char *asctime_r(const struct tm *t, char *buf);
21 struct tm *gmtime_r(const time_t *timep, struct tm *r);
22 struct tm* localtime_r(const time_t* t, struct tm* r);
23 
24 #endif
25