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