[time.cal.mwd.nonmembers]

# 30 Time library [[time]](./#time)

## 30.8 The civil calendar [[time.cal]](time.cal#mwd.nonmembers)

### 30.8.11 Class month_weekday [[time.cal.mwd]](time.cal.mwd#nonmembers)

#### 30.8.11.3 Non-member functions [time.cal.mwd.nonmembers]

[ð](#lib:operator==,month_weekday)

`constexpr bool operator==(const month_weekday& x, const month_weekday& y) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L5846)

*Returns*: x.month() == y.month() && x.weekday_indexed() == y.weekday_indexed()[.](#1.sentence-1)

[ð](#lib:operator%3c%3c,month_weekday)

`template<class charT, class traits>
  basic_ostream<charT, traits>&
    operator<<(basic_ostream<charT, traits>& os, const month_weekday& mwd);
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L5859)

*Effects*: Equivalent to:return os << format(os.getloc(), *STATICALLY-WIDEN*<charT>("{:L}/{:L}"),
 mwd.month(), mwd.weekday_indexed());
