30 Time library [time]

30.8 The civil calendar [time.cal]

30.8.3 Class day [time.cal.day]

30.8.3.2 Member functions [time.cal.day.members]

constexpr explicit day(unsigned d) noexcept;
Effects: Initializes d_ with d.
The value held is unspecified if d is not in the range [0, 255].
constexpr day& operator+() noexcept;
Returns: *this.
constexpr day operator+(int) noexcept;
Returns: A copy of *this as it existed on entry to this member function.
constexpr day& operator-() noexcept;
Returns: *this.
constexpr day operator-(int) noexcept;
Returns: A copy of *this as it existed on entry to this member function.
constexpr day& operator+=(const days& d) noexcept;
Returns: *this.
constexpr day& operator-=(const days& d) noexcept;
Returns: *this.
constexpr explicit operator unsigned() const noexcept;
Returns: d_.
constexpr bool ok() const noexcept;
Returns: 1 <= d_ && d_ <= 31.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant