this class is necessary to prevent a collision between the "namespace date" and the legacy HOPS3 "struct date"
More...
#include <MHO_LegacyDateConverter.hh>
this class is necessary to prevent a collision between the "namespace date" and the legacy HOPS3 "struct date"
- Date
- Fri Aug 18 11:08:08 2023 -0400
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
◆ MHO_LegacyDateConverter()
hops::MHO_LegacyDateConverter::MHO_LegacyDateConverter |
( |
| ) |
|
|
inline |
◆ ~MHO_LegacyDateConverter()
virtual hops::MHO_LegacyDateConverter::~MHO_LegacyDateConverter |
( |
| ) |
|
|
inlinevirtual |
◆ ConvertFromISO8601Format()
legacy_hops_date hops::MHO_LegacyDateConverter::ConvertFromISO8601Format |
( |
std::string |
iso_date | ) |
|
|
static |
Converts ISO8601 date string to legacy_hops_date format.
- Parameters
-
iso_date | Input date string in ISO8601 format |
- Returns
- legacy_hops_date representation of the input ISO8601 date
- Note
- This is a static function.
◆ ConvertFromVexFormat()
legacy_hops_date hops::MHO_LegacyDateConverter::ConvertFromVexFormat |
( |
std::string |
vex_date | ) |
|
|
static |
Converts a VEX date string to legacy_hops_date.
- Parameters
-
vex_date | Input VEX date string. |
- Returns
- legacy_hops_date converted from input vex_date.
- Note
- This is a static function.
◆ ConvertToISO8601Format()
std::string hops::MHO_LegacyDateConverter::ConvertToISO8601Format |
( |
legacy_hops_date |
a_date | ) |
|
|
static |
Converts a legacy date to ISO8601 format.
- Parameters
-
- Returns
- ISO8601 formatted string representation of the input date.
- Note
- This is a static function.
◆ ConvertToVexFormat()
std::string hops::MHO_LegacyDateConverter::ConvertToVexFormat |
( |
legacy_hops_date |
a_date | ) |
|
|
static |
Converts a legacy date to VEX format.
- Parameters
-
- Returns
- Date in VEX format as string
- Note
- This is a static function.
◆ HopsEpoch()
Calculates and returns the legacy date for the current Hops epoch.
- Returns
- legacy_hops_date representing the current Hops epoch in legacy format.
- Note
- This is a static function.
◆ Now()
The documentation for this class was generated from the following files: