63      if (os.tie()) os.tie()->flush(); 
 
   64      os << 
ts.AsString(
"c");
 
   67   if (os.flags() & std::ios::unitbuf) os.flush();
 
 
  174      - 0.0000062*T*T*T + (D - 
D_r)*86400.0*1.002737909350795)/3600.0;
 
 
  193   Double_t Pi = 3.14159265358979323846;
 
  195   Double_t epsilon = (23.4393 - 0.0000004 * D) * Pi / 180.0;
 
  196   Double_t L = (280.47 + 0.98565 * D) * Pi / 180.0;
 
 
  274   constexpr std::size_t bufferSize = 64;
 
  296   const Char_t *
kRFC822   = 
"%a, %d %b %Y %H:%M:%S %z (%Z) +#9ld nsec";
 
  301   const Char_t *
kRFC822   = 
"%a, %d %b %Y %H:%M:%S %Z +#9ld nsec";
 
  319   time_t seconds = (time_t) 
fSec;
 
 
  369   return (1900+
ptm->tm_year)*10000 + (1+
ptm->tm_mon)*100 + 
ptm->tm_mday;
 
 
  388   if (min)  *min  = 
ptm->tm_min;
 
  391   return ptm->tm_hour*10000 + 
ptm->tm_min*100 + 
ptm->tm_sec;
 
 
  449   return ptm->tm_mon + 1;
 
 
  510#if defined(R__WINGCC) 
  513#if !defined(R__FBSD) && !defined(R__OBSD) 
 
  566                    (
unsigned __int64) 1000000000);
 
  568            (
unsigned __int64) (1000*1000*10)       
 
  569          * (
unsigned __int64) (60 * 60 * 24)       
 
 
  635      Error(
"TTimeStamp::Set",
"mktime returned -1");
 
 
  705      time_t t = (time_t) 
tloc;
 
  729      Error(
"TTimeStamp::Set",
"mktime returned -1");
 
 
  770   Int_t daysInMonth[] = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
 
 
  816   Int_t daysInMonth[] = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
 
 
  866   } 
else if (
week == 0) {
 
 
  887   return (
year % 4 == 0) && !((
year % 100 == 0) && (
year % 400 > 0));
 
 
  906   printf(
" tm { year %4d, mon   %2d, day   %2d,\n",
 
  910   printf(
"      hour   %2d, min   %2d, sec   %2d,\n",
 
  914   printf(
"      wday   %2d, yday %3d, isdst %2d",
 
  918#if (defined(linux) && !defined(R__WINGCC)) || defined(R__MACOSX) 
  919   printf(
",\n      tm_gmtoff %6ld, tm_zone \"%s\"",
 
 
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.
 
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 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 Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
 
TBuffer & operator>>(TBuffer &buf, TTimeStamp &ts)
Read time stamp from TBuffer.
 
TVirtualMutex * gTimeMutex
 
std::ostream & operator<<(std::ostream &os, const TTimeStamp &ts)
Write time stamp to std::ostream.
 
R__EXTERN TVirtualMutex * gTimeMutex
 
#define R__LOCKGUARD2(mutex)
 
Buffer base class used for serializing objects.
 
void ToLower()
Change string to lower-case.
 
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
 
The TTimeStamp encapsulates seconds and ns since EPOCH.
 
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.
 
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.
 
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.
 
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.
 
Double_t AsGAST(Double_t UT1Offset=0) const
Return Greenwich apparent sidereal time (GAST) in hour-angle.
 
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,...
 
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.
 
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.