[time.cal.md.members]

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

## 30.8 The civil calendar [[time.cal]](time.cal#md.members)

### 30.8.9 Class month_day [[time.cal.md]](time.cal.md#members)

#### 30.8.9.2 Member functions [time.cal.md.members]

[ð](#lib:month_day,constructor)

`constexpr month_day(const chrono::month& m, const chrono::day& d) noexcept;
`

[1](#1)

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

*Effects*: Initializes m_ with m, and d_ with d[.](#1.sentence-1)

[ð](#lib:month,month_day)

`constexpr chrono::month month() const noexcept;
`

[2](#2)

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

*Returns*: m_[.](#2.sentence-1)

[ð](#lib:day,month_day)

`constexpr chrono::day day() const noexcept;
`

[3](#3)

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

*Returns*: d_[.](#3.sentence-1)

[ð](#lib:ok,month_day)

`constexpr bool ok() const noexcept;
`

[4](#4)

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

*Returns*: true ifm_.ok() is true,1d <= d_, andd_ is less than or equal to the number of days in month m_;
otherwise returns false[.](#4.sentence-1)

When m_ == February,
the number of days is considered to be 29[.](#4.sentence-2)
