diff options
| author | armink <[email protected]> | 2018-02-16 20:48:37 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-02-16 20:48:37 +0800 |
| commit | 9c620cb2f18fdf287302a7b4091046ce717891e6 (patch) | |
| tree | dd7bd94ab20f669ccde8749ac68d494fef3d310c | |
| parent | 0c4922becbbc8b0eb63c4a5bbb3ae4b749eccd24 (diff) | |
[Libc][Minilibc] Add some function declaration to time.h .
| -rw-r--r-- | components/libc/compilers/minilibc/time.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/libc/compilers/minilibc/time.h b/components/libc/compilers/minilibc/time.h index 2f8ad23c71..d64feba0b8 100644 --- a/components/libc/compilers/minilibc/time.h +++ b/components/libc/compilers/minilibc/time.h @@ -3,4 +3,14 @@ #include <sys/time.h> +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); + #endif |
