summaryrefslogtreecommitdiff
path: root/components/libc/compilers/minilibc/time.h
blob: d64feba0b8af639bb6eb92b4aa0febc7e5c9611d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __TIME_H__
#define __TIME_H__

#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