#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?????*/
/*  ûÂ??150(§Æ)*60=9000¥ø=750*12 ?   LS1¦T   */
/*  LS1200??  LS1¦T   */
/*  LS100¦T?   LS1¦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;	// ?????¢q
extern BOOL TimeZonePalChangeFlag; // ??¢q??????????????

void RealTimeToSATime( LSTIME *lstime );
/*void LSTimeToRealTime( LSTIME *lstime, long *t);*/
LSTIME_SECTION getLSTime (LSTIME *lstime);
// ??¢q??????????? ***********************************/
void TimeZoneProc( void );

#endif  /*__HANDLETIME_H__*/
