#include <TTimeStamp.h>
Public Member Functions | |
| TTimeStamp () | |
| TTimeStamp (const timespec_t &ts) | |
| TTimeStamp (time_t t, Int_t nsec) | |
| TTimeStamp (UInt_t year, UInt_t month, UInt_t day, UInt_t hour, UInt_t min, UInt_t sec, UInt_t nsec=0, Bool_t isUTC=kTRUE, Int_t secOffset=0) | |
| TTimeStamp (UInt_t date, UInt_t time, UInt_t nsec, Bool_t isUTC=kTRUE, Int_t secOffset=0) | |
| TTimeStamp (UInt_t tloc, Bool_t isUTC=kTRUE, Int_t secOffset=0, Bool_t dosDate=kFALSE) | |
| virtual | ~TTimeStamp () |
| void | Set () |
| void | Set (Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec, Int_t nsec, Bool_t isUTC, Int_t secOffset) |
| void | Set (Int_t date, Int_t time, Int_t nsec, Bool_t isUTC, Int_t secOffset) |
| void | Set (UInt_t tloc, Bool_t isUTC, Int_t secOffset, Bool_t dosDate) |
| void | SetSec (Int_t sec) |
| void | SetNanoSec (Int_t nsec) |
| timespec_t | GetTimeSpec () const |
| time_t | GetSec () const |
| Int_t | GetNanoSec () const |
| Double_t | AsDouble () const |
| Double_t | AsJulianDate () const |
| const char * | AsString (const Option_t *option="") const |
| void | Copy (TTimeStamp &ts) const |
| UInt_t | GetDate (Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *year=0, UInt_t *month=0, UInt_t *day=0) const |
| UInt_t | GetTime (Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *hour=0, UInt_t *min=0, UInt_t *sec=0) const |
| Int_t | GetDayOfYear (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Int_t | GetDayOfWeek (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Int_t | GetMonth (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Int_t | GetWeek (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Bool_t | IsLeapYear (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| void | Add (const TTimeStamp &offset) |
| void | Print (const Option_t *option="") const |
| operator double () const | |
| TTimeStamp () | |
| TTimeStamp (const timespec_t &ts) | |
| TTimeStamp (time_t t, Int_t nsec) | |
| TTimeStamp (UInt_t year, UInt_t month, UInt_t day, UInt_t hour, UInt_t min, UInt_t sec, UInt_t nsec=0, Bool_t isUTC=kTRUE, Int_t secOffset=0) | |
| TTimeStamp (UInt_t date, UInt_t time, UInt_t nsec, Bool_t isUTC=kTRUE, Int_t secOffset=0) | |
| TTimeStamp (UInt_t tloc, Bool_t isUTC=kTRUE, Int_t secOffset=0, Bool_t dosDate=kFALSE) | |
| virtual | ~TTimeStamp () |
| void | Set () |
| void | Set (Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec, Int_t nsec, Bool_t isUTC, Int_t secOffset) |
| void | Set (Int_t date, Int_t time, Int_t nsec, Bool_t isUTC, Int_t secOffset) |
| void | Set (UInt_t tloc, Bool_t isUTC, Int_t secOffset, Bool_t dosDate) |
| void | SetSec (Int_t sec) |
| void | SetNanoSec (Int_t nsec) |
| timespec_t | GetTimeSpec () const |
| time_t | GetSec () const |
| Int_t | GetNanoSec () const |
| Double_t | AsDouble () const |
| Double_t | AsJulianDate () const |
| const char * | AsString (const Option_t *option="") const |
| void | Copy (TTimeStamp &ts) const |
| UInt_t | GetDate (Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *year=0, UInt_t *month=0, UInt_t *day=0) const |
| UInt_t | GetTime (Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *hour=0, UInt_t *min=0, UInt_t *sec=0) const |
| Int_t | GetDayOfYear (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Int_t | GetDayOfWeek (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Int_t | GetMonth (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Int_t | GetWeek (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Bool_t | IsLeapYear (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| void | Add (const TTimeStamp &offset) |
| void | Print (const Option_t *option="") const |
| operator double () const | |
Static Public Member Functions | |
| static Int_t | GetZoneOffset () |
| static time_t | MktimeFromUTC (tm_t *tmstruct) |
| static void | DumpTMStruct (const tm_t &tmstruct) |
| static Int_t | GetDayOfYear (Int_t day, Int_t month, Int_t year) |
| static Int_t | GetDayOfWeek (Int_t day, Int_t month, Int_t year) |
| static Int_t | GetWeek (Int_t day, Int_t month, Int_t year) |
| static Bool_t | IsLeapYear (Int_t year) |
| static Int_t | GetZoneOffset () |
| static time_t | MktimeFromUTC (tm_t *tmstruct) |
| static void | DumpTMStruct (const tm_t &tmstruct) |
| static Int_t | GetDayOfYear (Int_t day, Int_t month, Int_t year) |
| static Int_t | GetDayOfWeek (Int_t day, Int_t month, Int_t year) |
| static Int_t | GetWeek (Int_t day, Int_t month, Int_t year) |
| static Bool_t | IsLeapYear (Int_t year) |
Private Member Functions | |
| void | NormalizeNanoSec () |
| void | NormalizeNanoSec () |
Private Attributes | |
| Int_t | fSec |
| Int_t | fNanoSec |
Friends | |
| Bool_t | operator== (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator!= (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator< (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator<= (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator> (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator>= (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator== (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator!= (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator< (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator<= (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator> (const TTimeStamp &lhs, const TTimeStamp &rhs) |
| Bool_t | operator>= (const TTimeStamp &lhs, const TTimeStamp &rhs) |
Definition at line 99 of file TTimeStamp.h.
| TTimeStamp::TTimeStamp | ( | ) |
| TTimeStamp::TTimeStamp | ( | const timespec_t & | ts | ) | [inline] |
| TTimeStamp::TTimeStamp | ( | time_t | t, | |
| Int_t | nsec | |||
| ) | [inline] |
| virtual TTimeStamp::~TTimeStamp | ( | ) | [inline, virtual] |
Definition at line 140 of file TTimeStamp.h.
| TTimeStamp::TTimeStamp | ( | ) |
| TTimeStamp::TTimeStamp | ( | const timespec_t & | ts | ) | [inline] |
| TTimeStamp::TTimeStamp | ( | time_t | t, | |
| Int_t | nsec | |||
| ) | [inline] |
| TTimeStamp::TTimeStamp | ( | UInt_t | year, | |
| UInt_t | month, | |||
| UInt_t | day, | |||
| UInt_t | hour, | |||
| UInt_t | min, | |||
| UInt_t | sec, | |||
| UInt_t | nsec = 0, |
|||
| Bool_t | isUTC = kTRUE, |
|||
| Int_t | secOffset = 0 | |||
| ) |
| TTimeStamp::TTimeStamp | ( | UInt_t | date, | |
| UInt_t | time, | |||
| UInt_t | nsec, | |||
| Bool_t | isUTC = kTRUE, |
|||
| Int_t | secOffset = 0 | |||
| ) |
| TTimeStamp::TTimeStamp | ( | UInt_t | tloc, | |
| Bool_t | isUTC = kTRUE, |
|||
| Int_t | secOffset = 0, |
|||
| Bool_t | dosDate = kFALSE | |||
| ) |
| virtual TTimeStamp::~TTimeStamp | ( | ) | [inline, virtual] |
Definition at line 140 of file TTimeStamp.h.
| void TTimeStamp::NormalizeNanoSec | ( | ) | [private] |
Definition at line 636 of file TTimeStamp.cxx.
References fNanoSec, and fSec.
Referenced by Add(), Set(), and TTimeStamp().
| void TTimeStamp::Set | ( | ) |
Definition at line 452 of file TTimeStamp.cxx.
References fNanoSec, fSec, gettimeofday(), gTimeMutex, and R__LOCKGUARD2.
Referenced by memstat::TMemStatMng::AddPointer(), Set(), TSocket::Touch(), and TTimeStamp().
| void TTimeStamp::Set | ( | Int_t | year, | |
| Int_t | month, | |||
| Int_t | day, | |||
| Int_t | hour, | |||
| Int_t | min, | |||
| Int_t | sec, | |||
| Int_t | nsec, | |||
| Bool_t | isUTC, | |||
| Int_t | secOffset | |||
| ) |
Definition at line 495 of file TTimeStamp.cxx.
References Error, fNanoSec, fSec, MktimeFromUTC(), and NormalizeNanoSec().
Definition at line 584 of file TTimeStamp.cxx.
References Error, fNanoSec, fSec, localtime_r, MktimeFromUTC(), NormalizeNanoSec(), and t.
| void TTimeStamp::SetSec | ( | Int_t | sec | ) | [inline] |
| void TTimeStamp::SetNanoSec | ( | Int_t | nsec | ) | [inline] |
| timespec_t TTimeStamp::GetTimeSpec | ( | ) | const [inline] |
| time_t TTimeStamp::GetSec | ( | ) | const [inline] |
Definition at line 163 of file TTimeStamp.h.
References fSec.
Referenced by Build_Timing_Tree(), Draw_Slave_Access(), TMonitor::GetActive(), TShutdownTimer::Notify(), TPerfStats::PacketEvent(), and TPerfStats::WriteQueryLog().
| Int_t TTimeStamp::GetNanoSec | ( | ) | const [inline] |
Definition at line 164 of file TTimeStamp.h.
References fNanoSec.
Referenced by Build_Timing_Tree(), Draw_Slave_Access(), TMonitor::GetActive(), and TShutdownTimer::Notify().
| Double_t TTimeStamp::AsDouble | ( | ) | const [inline] |
Definition at line 166 of file TTimeStamp.h.
References fNanoSec, and fSec.
Referenced by memstat::TMemStatMng::AddPointer(), AsJulianDate(), memstat::TMemStatMng::Init(), and operator double().
| Double_t TTimeStamp::AsJulianDate | ( | ) | const [inline] |
| const char* TTimeStamp::AsString | ( | const Option_t * | option = "" |
) | const |
Referenced by TPerfStats::PacketEvent(), and TPerfStats::WriteQueryLog().
| void TTimeStamp::Copy | ( | TTimeStamp & | ts | ) | const |
Definition at line 296 of file TTimeStamp.cxx.
References fSec, gmtime_r, and localtime_r.
Referenced by G__G__Base3_124_0_34(), G__setup_memfuncTTimeStamp(), and GetWeek().
Definition at line 317 of file TTimeStamp.cxx.
References fSec, gmtime_r, and localtime_r.
Referenced by HtmlMonthTable::BuildDays(), G__G__Base3_124_0_35(), G__setup_memfuncTTimeStamp(), and GetWeek().
Definition at line 354 of file TTimeStamp.cxx.
References fSec, gmtime_r, and localtime_r.
Referenced by G__G__Base3_124_0_36(), and G__setup_memfuncTTimeStamp().
Definition at line 376 of file TTimeStamp.cxx.
References fSec, gmtime_r, and localtime_r.
Referenced by HtmlMonthTable::BuildDays(), G__G__Base3_124_0_37(), G__setup_memfuncTTimeStamp(), GetDayOfYear(), and MktimeFromUTC().
| void TTimeStamp::Add | ( | const TTimeStamp & | offset | ) |
| void TTimeStamp::Print | ( | const Option_t * | option = "" |
) | const |
| TTimeStamp::operator double | ( | ) | const [inline] |
| Int_t TTimeStamp::GetZoneOffset | ( | ) | [static] |
Definition at line 402 of file TTimeStamp.cxx.
References localtime_r.
Referenced by G__G__Base3_124_0_31(), G__setup_memfuncTTimeStamp(), and TGaxis::PaintAxis().
| time_t TTimeStamp::MktimeFromUTC | ( | tm_t * | tmstruct | ) | [static] |
Definition at line 655 of file TTimeStamp.cxx.
References IsLeapYear().
Referenced by G__G__Base3_124_0_32(), G__setup_memfuncTTimeStamp(), and Set().
| void TTimeStamp::DumpTMStruct | ( | const tm_t & | tmstruct | ) | [static] |
Definition at line 789 of file TTimeStamp.cxx.
Referenced by G__G__Base3_124_0_33(), and G__setup_memfuncTTimeStamp().
Definition at line 725 of file TTimeStamp.cxx.
Definition at line 773 of file TTimeStamp.cxx.
| void TTimeStamp::NormalizeNanoSec | ( | ) | [private] |
| void TTimeStamp::Set | ( | ) |
| void TTimeStamp::Set | ( | Int_t | year, | |
| Int_t | month, | |||
| Int_t | day, | |||
| Int_t | hour, | |||
| Int_t | min, | |||
| Int_t | sec, | |||
| Int_t | nsec, | |||
| Bool_t | isUTC, | |||
| Int_t | secOffset | |||
| ) |
| void TTimeStamp::SetSec | ( | Int_t | sec | ) | [inline] |
| void TTimeStamp::SetNanoSec | ( | Int_t | nsec | ) | [inline] |
| timespec_t TTimeStamp::GetTimeSpec | ( | ) | const [inline] |
| time_t TTimeStamp::GetSec | ( | ) | const [inline] |
| Int_t TTimeStamp::GetNanoSec | ( | ) | const [inline] |
| Double_t TTimeStamp::AsDouble | ( | ) | const [inline] |
| Double_t TTimeStamp::AsJulianDate | ( | ) | const [inline] |
| const char* TTimeStamp::AsString | ( | const Option_t * | option = "" |
) | const |
| void TTimeStamp::Copy | ( | TTimeStamp & | ts | ) | const |
| UInt_t TTimeStamp::GetDate | ( | Bool_t | inUTC = kTRUE, |
|
| Int_t | secOffset = 0, |
|||
| UInt_t * | year = 0, |
|||
| UInt_t * | month = 0, |
|||
| UInt_t * | day = 0 | |||
| ) | const |
| UInt_t TTimeStamp::GetTime | ( | Bool_t | inUTC = kTRUE, |
|
| Int_t | secOffset = 0, |
|||
| UInt_t * | hour = 0, |
|||
| UInt_t * | min = 0, |
|||
| UInt_t * | sec = 0 | |||
| ) | const |
| void TTimeStamp::Add | ( | const TTimeStamp & | offset | ) |
| void TTimeStamp::Print | ( | const Option_t * | option = "" |
) | const |
| TTimeStamp::operator double | ( | ) | const [inline] |
| static Int_t TTimeStamp::GetZoneOffset | ( | ) | [static] |
| static time_t TTimeStamp::MktimeFromUTC | ( | tm_t * | tmstruct | ) | [static] |
| static void TTimeStamp::DumpTMStruct | ( | const tm_t & | tmstruct | ) | [static] |
| Bool_t operator== | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator!= | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator< | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator<= | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator> | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator>= | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator== | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator!= | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator< | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator<= | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator> | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
| Bool_t operator>= | ( | const TTimeStamp & | lhs, | |
| const TTimeStamp & | rhs | |||
| ) | [friend] |
Int_t TTimeStamp::fSec [private] |
Definition at line 109 of file TTimeStamp.h.
Referenced by Add(), AsDouble(), Copy(), GetDate(), GetDayOfWeek(), GetDayOfYear(), GetMonth(), GetSec(), GetTime(), GetTimeSpec(), GetWeek(), IsLeapYear(), NormalizeNanoSec(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), Set(), and SetSec().
Int_t TTimeStamp::fNanoSec [private] |
Definition at line 110 of file TTimeStamp.h.
Referenced by Add(), AsDouble(), Copy(), GetNanoSec(), GetTimeSpec(), NormalizeNanoSec(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), Set(), and SetNanoSec().
1.5.1