48 {
Set(tloc, dosDate); }
52 TDatime(
const char *sqlDateTime);
58 const char *
AsString(
char *out)
const;
80 void Set(
const char *sqlDateTime);
TDatime()
Create a TDatime and set it to the current time.
void Set()
Set Date/Time to current time as reported by the system.
friend Bool_t operator>(const TDatime &d1, const TDatime &d2)
friend Bool_t operator<=(const TDatime &d1, const TDatime &d2)
friend Bool_t operator<(const TDatime &d1, const TDatime &d2)
TDatime(const TDatime &d)
void ReadBuffer(char *&buffer)
Decode Date/Time from output buffer, used by I/O system.
static Int_t GetLegalGlobalDayFromDate(Int_t date)
Static function that returns the global day number from date.
Int_t GetDate() const
Return date in form of 19971224 (i.e. 24/12/1997)
static Int_t GetDateFromGlobalDay(Int_t day)
Static function that returns the date from the global day number.
friend Bool_t operator>=(const TDatime &d1, const TDatime &d2)
#define ClassDef(name, id)
void Copy(TDatime &datime) const
Copy this to datime.
static void GetDateTime(UInt_t datetime, Int_t &date, Int_t &time)
Static function that returns the date and time.
void FillBuffer(char *&buffer)
Encode Date/Time into buffer, used by I/O system.
std::string printValue(const TDatime *val)
Print a TDatime at the prompt.
static Int_t GetGlobalDayFromDate(Int_t date)
Static function that returns the global day number from date.
UInt_t Get() const
Return raw date/time as encoded by TDatime.
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
void Print(Option_t *option="") const
Print date and time.
TDatime(UInt_t tloc, Bool_t dosDate=kFALSE)
Int_t GetTime() const
Return time in form of 123623 (i.e. 12:36:23)
friend Bool_t operator==(const TDatime &d1, const TDatime &d2)
Print a TSeq at the prompt:
Int_t GetDayOfWeek() const
Returns day of week, with Monday being day 1 and Sunday day 7.
const char * AsString() const
Return the date & time as a string (ctime() format).
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
TDatime & operator=(const TDatime &d)
friend Bool_t operator!=(const TDatime &d1, const TDatime &d2)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...