87   static TString weekDays[7] = { 
"Mon", 
"Tue", 
"Wed", 
"Thu", 
"Fri", 
"Sat", 
"Sun" };
 
   94   return (
day < 7) ? 
day+1: -1;
 
 
  110      Error(
"TDatime::AsString", 
"could not get time string");
 
 
  124#if defined(R__SOLARIS) && (_POSIX_C_SOURCE - 0 < 199506L) 
  141      Error(
"TDatime::AsString", 
"could not get time string");
 
 
  201      Error(
"TDatime::Convert", 
"error converting fDatime to time_t");
 
 
  263   return 10000*
hour + 100*min + 
sec;
 
 
  291   time_t 
tloc   = time(
nullptr);
 
 
  329      min   = (
tloc >> 5) & 0x3f;
 
  332      time_t t = (time_t) 
tloc;
 
 
  360   if (
date > 19000000) 
date -= 19000000;
 
  362      Error(
"TDatime::Set", 
"year smaller than 1995");
 
  373   min  = (time-
hour*10000)/100;
 
 
  388      Error(
"TDatime::Set", 
"year must be >= 1995");
 
 
  406      Error(
"TDatime(sqlDatTime)", 
"input string not in right format, set" 
  407            " to current date/time");
 
 
  439   time         =  10000*
hour + 100*min + 
sec;
 
 
  457   return y*365 + 
y/4 - 
y/100 + 
y/400 + (
m*306 + 5)/10 + (dd - 1);
 
 
  479   return dy*10000 + dm*100 + dd;
 
 
  498      ::Warning(
"TDatime::GetLegalGlobalDayFromDate", 
"dates before Oct. 1582 are inaccurate.");
 
  501      ::Error(
"TDatime::GetLegalGlobalDayFromDate", 
"illegal date %d", 
dte);
 
 
  510std::string cling::printValue(
const TDatime* val) {
 
  512   return std::string(val->
AsString(buf));
 
void frombuf(char *&buf, Bool_t *x)
 
void tobuf(char *&buf, Bool_t x)
 
const char Option_t
Option string (const char)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
 
Buffer base class used for serializing objects.
 
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.
 
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.
 
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.
 
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
 
virtual void Streamer(TBuffer &)
Stream a object of type TDatime.
 
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.
 
Int_t GetTime() const
Return time in form of 123623 (i.e. 12:36:23)
 
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.