Implementation of set_month method.
| 33 | |
| 34 | // Implementation of set_month method. |
| 35 | curl::cookie_date *curl::cookie_date::set_month(const unsigned int cookieMonth) { |
| 36 | try { |
| 37 | this->month = details::monthsNames.at(cookieMonth); |
| 38 | } catch (const out_of_range &) { |
| 39 | this->month = "Jan"; |
| 40 | } |
| 41 | return this; |
| 42 | } |
| 43 | |
| 44 | // Implementation of set_year method. |
| 45 | curl::cookie_date *curl::cookie_date::set_year(const unsigned int cookieYear) NOEXCEPT { |