2020-12-01 23:40:03 +00:00
|
|
|
#ifndef _TIME_H
|
|
|
|
#define _TIME_H
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL (void *) 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <types/clock_t.h>
|
|
|
|
#include <types/size_t.h>
|
|
|
|
#include <types/time_t.h>
|
|
|
|
#include <types/clockid_t.h>
|
|
|
|
#include <types/timer_t.h>
|
|
|
|
#include <types/locale_t.h>
|
|
|
|
#include <types/pid_t.h>
|
|
|
|
|
2020-12-09 00:10:56 +00:00
|
|
|
struct tm{
|
2020-12-01 23:40:03 +00:00
|
|
|
unsigned int tm_sec : 6;
|
|
|
|
unsigned int tm_min : 6;
|
|
|
|
unsigned int tm_hour : 5;
|
|
|
|
unsigned int tm_mday : 5;
|
|
|
|
unsigned int tm_mon : 4;
|
|
|
|
unsigned int tm_year;
|
|
|
|
unsigned int tm_wday : 3;
|
|
|
|
unsigned int tm_yday : 9;
|
|
|
|
int tm_isdst : 2;
|
2020-12-09 00:10:56 +00:00
|
|
|
};
|
2020-12-01 23:40:03 +00:00
|
|
|
|
|
|
|
time_t time(time_t *);
|
|
|
|
|
|
|
|
#endif /* not _HEADER */
|