123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-03-29
- * Changed: 2024-05-31
- *
- * */
- #include <ls-std/time/common/DateParameter.hpp>
- using ls::std::time::DateParameter;
- using ls::std::time::type::Day;
- using ls::std::time::type::Hour;
- using ls::std::time::type::Minute;
- using ls::std::time::type::Month;
- using ls::std::time::type::Second;
- using ls::std::time::type::Year;
- DateParameter::DateParameter(const Year _year, const Month _month, const Day _day, const Hour _hour, const Minute _minute, const Second _second) : day(_day), hour(_hour), minute(_minute), month(_month), second(_second), year(_year)
- {}
- DateParameter::DateParameter() = default;
- DateParameter::~DateParameter() = default;
- bool DateParameter::operator==(const DateParameter &_dateParameter) const
- {
- return this->day == _dateParameter.getDay() && this->hour == _dateParameter.getHour() && this->minute == _dateParameter.getMinute() && this->month == _dateParameter.getMonth() && this->second == _dateParameter.getSecond() && this->year == _dateParameter.getYear();
- }
- Day DateParameter::getDay() const
- {
- return this->day;
- }
- Hour DateParameter::getHour() const
- {
- return this->hour;
- }
- Minute DateParameter::getMinute() const
- {
- return this->minute;
- }
- Month DateParameter::getMonth() const
- {
- return this->month;
- }
- Second DateParameter::getSecond() const
- {
- return this->second;
- }
- Year DateParameter::getYear() const
- {
- return this->year;
- }
- void DateParameter::setDay(const Day _day)
- {
- this->day = _day;
- }
- void DateParameter::setHour(const Hour _hour)
- {
- this->hour = _hour;
- }
- void DateParameter::setMinute(const Minute _minute)
- {
- this->minute = _minute;
- }
- void DateParameter::setMonth(const Month _month)
- {
- this->month = _month;
- }
- void DateParameter::setSecond(const Second _second)
- {
- this->second = _second;
- }
- void DateParameter::setYear(const Year _year)
- {
- this->year = _year;
- }
|