2018-10-14 19:28:18 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
*/
|
2013-01-08 22:40:58 +08:00
|
|
|
#ifndef __TIME_H__
|
|
|
|
#define __TIME_H__
|
|
|
|
|
|
|
|
#include <sys/time.h>
|
|
|
|
|
2018-02-16 20:48:37 +08:00
|
|
|
time_t mktime(struct tm * const t);
|
|
|
|
|
|
|
|
char *asctime(const struct tm *timeptr);
|
|
|
|
char *ctime(const time_t *timep);
|
|
|
|
struct tm* localtime(const time_t* t);
|
|
|
|
|
|
|
|
char *asctime_r(const struct tm *t, char *buf);
|
|
|
|
struct tm *gmtime_r(const time_t *timep, struct tm *r);
|
|
|
|
struct tm* localtime_r(const time_t* t, struct tm* r);
|
|
|
|
|
2013-01-08 22:40:58 +08:00
|
|
|
#endif
|