You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
8\) Returns the result of adding the number of months and years to the specified month and year.
119
119
120
-
9\) Returns the result of adding months or years to a `year_month_day`. If `ymd.month()` is `February` and `ymd.day()` is not in the range [1d, 28d], `ok()` may return `false` for the result of the addition.
120
+
9\) Returns the result of adding months or years to a `year_month_day`. If `ymd.month()` is `February` and `ymd.day()` is not in the range [1d, 28d], `ok()` may return `false` for the result of the addition.
121
121
122
122
10\) Returns `(ymdl.year() / ymdl.month() + dm) / last`. Note: The `/` used here isn't a division operator. It's the date operator.
4\) Returns the result of `d-ds.count()`. If the result is out of the range [0, 255], then the result is unspecified.
297
297
298
-
5\) If `m.ok() == true` and `ms.ok() == true`, returns the result of subtracting the two month values, or subtracting the number of months. The result will be in the range [1, 12]. If the result is negative, it wraps around. For example, subtracting one month from January (`month m1{1} - months{1};` results in 12 (December).
298
+
5\) If `m.ok() == true` and `ms.ok() == true`, returns the result of subtracting the two month values, or subtracting the number of months. The result will be in the range [1, 12]. If the result is negative, it wraps around. For example, subtracting one month from January (`month m1{1} - months{1};` results in 12 (December).
299
299
300
300
6\) Returns the difference in months between *`Left`* and *`Right`*
301
301
@@ -336,10 +336,10 @@ int main()
336
336
{
337
337
// day
338
338
day d{10};
339
-
d = d - days(5);
339
+
d = d - days(5);
340
340
std::cout << d << '\n'; // 05
341
341
342
-
// month
342
+
// month
343
343
month m{2};
344
344
m = m - months{1};
345
345
std::cout << m << '\n'; // Jan
@@ -367,13 +367,13 @@ int main()
367
367
// year_month_weekday
368
368
year_month_weekday ymw{ year(1997) / January / Wednesday[1] };
2\) Determines if the point in time since the epoch of the `Left`[`time_point`](../standard-library/time-point-class.md) is greater than the time since the epoch of the `time_point` in `Right`.
679
679
680
680
```cpp
681
-
1)
681
+
1)
682
682
template <class Rep1, class Period1, class Rep2, class Period2>
683
683
constexpr bool operator>(
684
684
const duration<Rep1, Period1>& Left,
@@ -1262,7 +1262,7 @@ operator/(const year& y, const month& m) noexcept; // C++20
1262
1262
// 2
1263
1263
constexpr year_month
1264
1264
operator/(const year& y, int m) noexcept; // C++20
0 commit comments