|
| TTimeStamp () |
| Default ctor. More...
|
|
| TTimeStamp (const timespec_t &ts) |
|
| TTimeStamp (time_t t, Int_t nsec) |
|
| TTimeStamp (UInt_t date, UInt_t time, UInt_t nsec, Bool_t isUTC=kTRUE, Int_t secOffset=0) |
| Create a TTimeStamp and set it to the specified date, time, nanosec. More...
|
|
| TTimeStamp (UInt_t tloc, Bool_t isUTC=kTRUE, Int_t secOffset=0, Bool_t dosDate=kFALSE) |
| Create a TTimeStamp and set it to tloc which must be a time_t value returned by time(). More...
|
|
| 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) |
| Create a TTimeStamp and set it to the specified year, month, day, time, hour, minute, second and nanosec. More...
|
|
virtual | ~TTimeStamp () |
|
void | Add (const TTimeStamp &offset) |
| Add "offset" as a delta time. More...
|
|
Double_t | AsDouble () const |
|
Double_t | AsGAST (Double_t UT1Offset=0) const |
| Return Greenwich apparent sidereal time (GAST) in hour-angle. More...
|
|
Double_t | AsGMST (Double_t UT1Offset=0) const |
| Return Greenwich mean sidereal time (GMST) in hour-angle. More...
|
|
Double_t | AsJulianDate () const |
|
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. More...
|
|
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. More...
|
|
const char * | AsString (const Option_t *option="") const |
| Return the date & time as a string. More...
|
|
void | Copy (TTimeStamp &ts) const |
| Copy this to ts. More...
|
|
UInt_t | GetDate (Bool_t inUTC=kTRUE, Int_t secOffset=0, UInt_t *year=0, UInt_t *month=0, UInt_t *day=0) const |
| Return date in form of 19971224 (i.e. More...
|
|
Int_t | GetDayOfWeek (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Method is using Zeller's formula for calculating the day number. More...
|
|
Int_t | GetDayOfYear (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Get the day of the year represented by this time stamp value. More...
|
|
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. More...
|
|
Int_t | GetNanoSec () const |
|
time_t | GetSec () 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 |
| Return time in form of 123623 (i.e. More...
|
|
timespec_t | GetTimeSpec () const |
|
Int_t | GetWeek (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Get the week of the year. More...
|
|
Bool_t | IsLeapYear (Bool_t inUTC=kTRUE, Int_t secOffset=0) const |
| Is the year a leap year. More...
|
|
| operator double () const |
|
void | Print (const Option_t *option="") const |
| Print date and time. More...
|
|
void | Set () |
| Set Date/Time to current time as reported by the system. More...
|
|
void | Set (Int_t date, Int_t time, Int_t nsec, Bool_t isUTC, Int_t secOffset) |
| Set date/time from integers of the form [yy]YYMMDD and HHMMSS, assume UTC (UTC) components: More...
|
|
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) |
| Set Date/Time from components. More...
|
|
void | Set (UInt_t tloc, Bool_t isUTC, Int_t secOffset, Bool_t dosDate) |
| The input arg is a time_t value returned by time() or a value returned by Convert(). More...
|
|
void | SetNanoSec (Int_t nsec) |
|
void | SetSec (Int_t sec) |
|