stoneage8.5/石器时代8.5客户端最新源代码/石器源码/systeminc/handletime.h

68 lines
1.3 KiB
C
Raw Normal View History

2020-06-23 15:27:59 +08:00
#ifndef __HANDLETIME_H__
#define __HANDLETIME_H__
//#undef EXTERN
//#ifdef __HANDLETIME_C__
//#define EXTERN
//#else /*__HANDLETIME_C__*/
//#define EXTERN extern
//#endif
//EXTERN struct timeval NowTime;
//EXTERN int DEBUG_ADJUSTTIME;
//BOOL setNewTime( void );
#if 0
#define NIGHT_TO_MORNING 906
#define MORNING_TO_NOON 1006
#define NOON_TO_EVENING 356
#define EVENING_TO_NIGHT 456
#else
#define NIGHT_TO_MORNING 700
#define MORNING_TO_NOON 930
#define NOON_TO_EVENING 200
#define EVENING_TO_NIGHT 300
#endif
/*??????HiO?LS?????*/
/* <20><>??150(<28><>)*60=9000<30><30>=750*12 ? LS1<53>T */
/* LS1200?? LS1<53>T */
/* LS100<30>T? LS1<53>g */
typedef struct tagLSTIME
{
int year;
int day;
int hour;
}LSTIME;
typedef enum
{
LS_NOON,
LS_EVENING ,
LS_NIGHT,
LS_MORNING ,
}LSTIME_SECTION;
// ?????????
extern LSTIME SaTime;
extern long serverTime;
extern long FirstTime; //the second
extern long clientTime; //the third
extern int SaTimeZoneNo; // ?????<3F>q
extern BOOL TimeZonePalChangeFlag; // ??<3F>q??????????????
void RealTimeToSATime( LSTIME *lstime );
/*void LSTimeToRealTime( LSTIME *lstime, long *t);*/
LSTIME_SECTION getLSTime (LSTIME *lstime);
// ??<3F>q??????????? ***********************************/
void TimeZoneProc( void );
#endif /*__HANDLETIME_H__*/