15 #include <unordered_map>
#define ClassDef(name, id)
Extension of TDatime to handle various useful date formats.
static const Char_t * Month(Int_t m)
Double_t GetNumberOfSeconds(Int_t ref_year=0)
void SetDMYDate(const Char_t *DMYString)
Set date from string in format "DD/MM/YYYY".
void SetIRODSDate(const Char_t *IRODSDateString)
static std::unordered_map< std::string, int > fMonthToNum
map month name to number
static Bool_t IsGANACQFormat(const Char_t *date)
static const std::vector< std::string > fNumToMonth
map month number to name
static Bool_t IsSRBFormat(const Char_t *date)
TString fStr
internal buffer used by String method
const Char_t * String(EKVDateFormat fmt=kCTIME)
void init_month_map()
set up static map of month names to month numbers if needed
static Bool_t IsSQLFormat(const Char_t *date)
static Bool_t IsGANACQ2010Format(const Char_t *date)
void SetSQLDate(const Char_t *SQLDateString)
void SetGanacqNarvalDate(const Char_t *GanacqDateString)
const Char_t * AsDMYDateString() const
KVDatime & operator=(const KVDatime &)
copy assignment operator
const Char_t * AsGanacqDateString() const
std::optional< int > get_month_from_name(const char *)
void SetSRBDate(const Char_t *SRBDateString)
static Bool_t IsGANACQNarvalFormat(const Char_t *date)
static Bool_t IsIRODSFormat(const Char_t *date)
void SetGanacq2010Date(const Char_t *GanacqDateString)
Double_t GetDureeInSeconds(KVDatime from)
void SetGanacqDate(const Char_t *GanacqDateString)