50 {
Set(tloc, dosDate); }
54 TDatime(
const char *sqlDateTime);
82 void Set(
const char *sqlDateTime);
Bool_t operator<(const TDatime &d1, const TDatime &d2)
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
void Set()
Set Date/Time to current time as reported by the system.
void Copy(TDatime &datime) const
Copy this to datime.
friend Bool_t operator>(const TDatime &d1, const TDatime &d2)
UInt_t Get() const
Return raw date/time as encoded by TDatime.
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.
friend Bool_t operator>=(const TDatime &d1, const TDatime &d2)
#define ClassDef(name, id)
Int_t GetTime() const
Return time in form of 123623 (i.e. 12:36:23)
Int_t GetDayOfWeek() const
Returns day of week, with Monday being day 1 and Sunday day 7.
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.
Bool_t operator!=(const TDatime &d1, const TDatime &d2)
std::string printValue(const TDatime &val)
Print a TDatime at the prompt.
Bool_t operator>(const TDatime &d1, const TDatime &d2)
TDatime(UInt_t tloc, Bool_t dosDate=kFALSE)
friend Bool_t operator==(const TDatime &d1, const TDatime &d2)
void Print(Option_t *option="") const
Print date and time.
TDatime & operator=(const TDatime &d)
Bool_t operator==(const TDatime &d1, const TDatime &d2)
Int_t GetDate() const
Return date in form of 19971224 (i.e. 24/12/1997)
friend Bool_t operator!=(const TDatime &d1, const TDatime &d2)
const char * AsString() const
Return the date & time as a string (ctime() format).
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Bool_t operator>=(const TDatime &d1, const TDatime &d2)
Bool_t operator<=(const TDatime &d1, const TDatime &d2)