blob: 27fc0d3fa709924a168bcdf6c3049a784ce627d7 [file] [log] [blame]
#include <BaSyx/submodel/simple/common/xsd_types/GMonth.h>
namespace basyx {
namespace submodel {
namespace simple {
GMonth::GMonth(uint8_t month, const Timezone &timezone)
: timezone{timezone}
{
this->setMonth(month);
}
uint8_t GMonth::getMonth() const
{
return this->month;
}
void GMonth::setMonth(uint8_t month)
{
month %= 12;
if (month == 0)
month = 12;
this->month = month;
}
const Timezone &GMonth::getTimezone() const
{
return this->timezone;
}
void GMonth::setTimezone(const Timezone &timezone)
{
this->timezone = timezone;
}
}
}
}