time.h
#ifndef __TIME_H_
#define __TIME_H_
/*
#ifdef __cplusplus
extern "C" {
#endif
*/
#ifdef WIN32
#include <windows.h>
#endif
typedef unsigned char uint8_t;
#define DEF_MINUTES_PER_DAY (24*60)
#define DEF_SECONDS_PER_DAY (24*60*60)
#define DEF_START_YEAR 2000
#define DEF_END_YEAR 2135
#define DEF_START_MONTH 1
#define DEF_END_MONTH 12
#define DEF_START_DAY 1
#define DEF_END_DAY_28 28
#define DEF_END_DAY_29 29
#define DEF_END_DAY_30 30
#define DEF_END_DAY_31 31
#define DEF_START_HOUR 0
#define DEF_END_HOUR 23
#define DEF_START_MINUTE 0
#define DEF_END_MINUTE 59
#define DEF_START_SECOND 0
#define DEF_END_SECOND 59
#define DEF_DAYS_PER_LEAPYEAR 366
#d