123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-03-29
- * Changed: 2023-05-17
- *
- * */
- #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(Year _year, Month _month, Day _day, Hour _hour, Minute _minute, 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(Day _day)
- {
- this->day = _day;
- }
- void DateParameter::setHour(Hour _hour)
- {
- this->hour = _hour;
- }
- void DateParameter::setMinute(Minute _minute)
- {
- this->minute = _minute;
- }
- void DateParameter::setMonth(Month _month)
- {
- this->month = _month;
- }
- void DateParameter::setSecond(Second _second)
- {
- this->second = _second;
- }
- void DateParameter::setYear(Year _year)
- {
- this->year = _year;
- }
|