HOPS
HOPS class reference
MHO_LegacyDateConverter.hh
Go to the documentation of this file.
1 #ifndef MHO_LegacyDateConverter_HH__
2 #define MHO_LegacyDateConverter_HH__
3 
4 #include "legacy_hops_date.hh"
5 #include <string>
6 
7 namespace hops
8 {
9 
20 {
21  public:
24 
32  static std::string ConvertToISO8601Format(legacy_hops_date a_date);
40  static std::string ConvertToVexFormat(legacy_hops_date a_date);
41 
49  static legacy_hops_date ConvertFromVexFormat(std::string vex_date);
57  static legacy_hops_date ConvertFromISO8601Format(std::string iso_date);
64  static legacy_hops_date Now();
71  static legacy_hops_date HopsEpoch();
72 };
73 
74 } // namespace hops
75 
76 #endif
this class is necessary to prevent a collision between the "namespace date" and the legacy HOPS3 "str...
Definition: MHO_LegacyDateConverter.hh:20
static std::string ConvertToVexFormat(legacy_hops_date a_date)
Converts a legacy date to VEX format.
Definition: MHO_LegacyDateConverter.cc:16
MHO_LegacyDateConverter()
Definition: MHO_LegacyDateConverter.hh:22
static legacy_hops_date Now()
Returns current date-time as legacy_hops_date.
Definition: MHO_LegacyDateConverter.cc:52
static std::string ConvertToISO8601Format(legacy_hops_date a_date)
Converts a legacy date to ISO8601 format.
Definition: MHO_LegacyDateConverter.cc:10
static legacy_hops_date ConvertFromVexFormat(std::string vex_date)
Converts a VEX date string to legacy_hops_date.
Definition: MHO_LegacyDateConverter.cc:22
virtual ~MHO_LegacyDateConverter()
Definition: MHO_LegacyDateConverter.hh:23
static legacy_hops_date HopsEpoch()
Calculates and returns the legacy date for the current Hops epoch.
Definition: MHO_LegacyDateConverter.cc:62
static legacy_hops_date ConvertFromISO8601Format(std::string iso_date)
Converts ISO8601 date string to legacy_hops_date format.
Definition: MHO_LegacyDateConverter.cc:37
Definition: MHO_ChannelLabeler.hh:17
A struct to avoid name collisions between the mk4utils 'data' struct and the 'date' header library.
Definition: legacy_hops_date.hh:17