shithub: npe

ref: 2d42c484b86d9551a6e586b6bf446956602490eb
dir: /include/npe/time.h/

View raw version
#ifndef _npe_time_h_
#define _npe_time_h_

#include <npe.h>

typedef long time_t;

struct tm {
	int tm_sec;
	int tm_min;
	int tm_hour;
	int tm_mday;
	int tm_mon;
	int tm_year;
	int tm_wday;
	int tm_yday;
	int tm_isdst;
};

#include <sys/time.h>

#define localtime npe_localtime
struct tm *npe_localtime(time_t *timep);
size_t strftime(char *s, size_t max, const char *format, const struct tm *tm);

#endif