12#ifndef ROOT_TTimeStamp 
   13#define ROOT_TTimeStamp 
   19#if defined (_MSC_VER) && (_MSC_VER < 1900) 
  156   { 
return lhs.fSec == 
rhs.fSec &&
 
  157            lhs.fNanoSec == 
rhs.fNanoSec; }
 
 
  160   { 
return lhs.fSec != 
rhs.fSec ||
 
  161            lhs.fNanoSec != 
rhs.fNanoSec; }
 
 
  164   { 
return lhs.fSec < 
rhs.fSec ||
 
  166              lhs.fNanoSec < 
rhs.fNanoSec); }
 
 
  169   { 
return lhs.fSec < 
rhs.fSec ||
 
  171              lhs.fNanoSec <= 
rhs.fNanoSec); }
 
 
  174   { 
return lhs.fSec > 
rhs.fSec ||
 
  176              lhs.fNanoSec > 
rhs.fNanoSec); }
 
 
  179   { 
return lhs.fSec > 
rhs.fSec ||
 
  181              lhs.fNanoSec >= 
rhs.fNanoSec); }
 
 
bool Bool_t
Boolean (0=false, 1=true) (bool)
 
int Int_t
Signed integer 4 bytes (int)
 
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
 
double Double_t
Double 8 bytes.
 
const char Option_t
Option string (const char)
 
#define ClassDef(name, id)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
 
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)
 
TBuffer & operator>>(TBuffer &buf, TTimeStamp &ts)
Read time stamp from TBuffer.
 
Bool_t operator!=(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
Bool_t operator>(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
R__EXTERN TVirtualMutex * gTimeMutex
 
Bool_t operator==(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
std::ostream & operator<<(std::ostream &os, const TTimeStamp &ts)
Write time stamp to std::ostream.
 
Buffer base class used for serializing objects.
 
The TTimeStamp encapsulates seconds and ns since EPOCH.
 
timespec_t GetTimeSpec() const
 
Bool_t IsLeapYear(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Is the year a leap year.
 
UInt_t GetTime(Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *hour=nullptr, UInt_t *min=nullptr, UInt_t *sec=nullptr) const
Return time in form of 123623 (i.e.
 
friend Bool_t operator>=(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
friend Bool_t operator<=(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
TTimeStamp(const timespec_t &ts)
 
Double_t AsLAST(Double_t Longitude, Double_t UT1Offset=0) const
Return local apparent sidereal time (LAST) in hour-angle, given a longitude in degrees.
 
Int_t GetDayOfYear(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Get the day of the year represented by this time stamp value.
 
friend Bool_t operator<(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
void SetNanoSec(Int_t nsec)
 
static void DumpTMStruct(const tm_t &tmstruct)
Print out the "tm" structure:
 
Int_t GetWeek(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Get the week of the year.
 
TTimeStamp()
Default ctor.
 
Double_t AsJulianDate() const
 
void Add(const TTimeStamp &offset)
Add "offset" as a delta time.
 
void Copy(TTimeStamp &ts) const
Copy this to ts.
 
Int_t GetDayOfWeek(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Method is using Zeller's formula for calculating the day number.
 
Double_t AsLMST(Double_t Longitude, Double_t UT1Offset=0) const
Return local mean sidereal time (LMST) in hour-angle, given a longitude in degrees.
 
friend Bool_t operator!=(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
Double_t AsGMST(Double_t UT1Offset=0) const
Return Greenwich mean sidereal time (GMST) in hour-angle.
 
void Print(const Option_t *option="") const
Print date and time.
 
void Set()
Set Date/Time to current time as reported by the system.
 
TTimeStamp(time_t t, Int_t nsec)
 
Double_t AsGAST(Double_t UT1Offset=0) const
Return Greenwich apparent sidereal time (GAST) in hour-angle.
 
friend Bool_t operator>(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
static Int_t GetZoneOffset()
Static method returning local (current) time zone offset from UTC.
 
static time_t MktimeFromUTC(tm_t *tmstruct)
Equivalent of standard routine "mktime" but using the assumption that tm struct is filled with UTC,...
 
friend Bool_t operator==(const TTimeStamp &lhs, const TTimeStamp &rhs)
 
Int_t GetMonth(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Get the month of the year. Valid return values are between 1 and 12.
 
Double_t AsDouble() const
 
const char * AsString(const Option_t *option="") const
Return the date & time as a string.
 
UInt_t GetDate(Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *year=nullptr, UInt_t *month=nullptr, UInt_t *day=nullptr) const
Return date in form of 19971224 (i.e.
 
void NormalizeNanoSec()
Ensure that the fNanoSec field is in range [0,999999999].
 
This class implements a mutex interface.