//CFTTServerTime - [2020-04-13 11:57:46]
#ifndef _CFTTSERVERTIME_H_
#define _CFTTSERVERTIME_H_

#include <stdio.h>
#include <stdlib.h>

/*
002686A0 CFTTServerTime::SetServerDateTime(char const*)
002687B4 CFTTServerTime::SetServerDateTime(int,int,int,int,int,int)
00268830 time_t CFTTServerTime::GetDateTime(bool,bool)
0026888C CFTTServerTime::GetServerTimeSet(int)
002688DC CFTTServerTime::GetCurDateTime(int *,int *,int *,int *,int *,int *,int *,int *,bool)
*/

class CFTTServerTime {
public:
  void SetServerDateTime(char const *stime);                                         //002686A0
  void SetServerDateTime(int year, int month, int day, int hour, int min, int sec);  //002687B4
  static time_t GetDateTime(bool a1, bool a2);                                       //00268830
  static bool GetServerTimeSet(int min);                                             //0026888C
  static void GetCurDateTime(int *pyear, int *pmon, int *pmday, int *pwday,
                             int *phour, int *pmin, int *psec, int *pisdst, bool ba9);  //002688DC

  static bool s_bServerTimeSet;
  static time_t s_tServerTime;
  static int64_t s_iServerTimeSeconds;
};

#endif  //_CFTTSERVERTIME_H_