HOPS
HOPS class reference
Public Member Functions | Static Public Member Functions | List of all members
hops::MHO_LegacyDateConverter Class Reference

this class is necessary to prevent a collision between the "namespace date" and the legacy HOPS3 "struct date" More...

#include <MHO_LegacyDateConverter.hh>

Public Member Functions

 MHO_LegacyDateConverter ()
 
virtual ~MHO_LegacyDateConverter ()
 

Static Public Member Functions

static legacy_hops_date ConvertFromISO8601Format (std::string iso_date)
 Converts ISO8601 date string to legacy_hops_date format. More...
 
static legacy_hops_date ConvertFromVexFormat (std::string vex_date)
 Converts a VEX date string to legacy_hops_date. More...
 
static std::string ConvertToISO8601Format (legacy_hops_date a_date)
 Converts a legacy date to ISO8601 format. More...
 
static std::string ConvertToVexFormat (legacy_hops_date a_date)
 Converts a legacy date to VEX format. More...
 
static legacy_hops_date HopsEpoch ()
 Calculates and returns the legacy date for the current Hops epoch. More...
 
static legacy_hops_date Now ()
 Returns current date-time as legacy_hops_date. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MHO_LegacyDateConverter()

hops::MHO_LegacyDateConverter::MHO_LegacyDateConverter ( )
inline

◆ ~MHO_LegacyDateConverter()

virtual hops::MHO_LegacyDateConverter::~MHO_LegacyDateConverter ( )
inlinevirtual

Member Function Documentation

◆ ConvertFromISO8601Format()

legacy_hops_date hops::MHO_LegacyDateConverter::ConvertFromISO8601Format ( std::string  iso_date)
static

Converts ISO8601 date string to legacy_hops_date format.

Parameters
iso_dateInput 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_dateInput 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
a_dateInput legacy date.
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
a_dateInput legacy date
Returns
Date in VEX format as string
Note
This is a static function.

◆ HopsEpoch()

legacy_hops_date hops::MHO_LegacyDateConverter::HopsEpoch ( )
static

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()

legacy_hops_date hops::MHO_LegacyDateConverter::Now ( )
static

Returns current date-time as legacy_hops_date.

Returns
Current date-time in legacy_hops_date format.
Note
This is a static function.

The documentation for this class was generated from the following files: