Skip to content

Commit adb0bf8

Browse files
TylerMSFTTylerMSFT
andauthored
add year-month class (MicrosoftDocs#3619)
* add year-month class * adding year_month_day class-in progress * more on year_month_day * tech review. noticed that /std:latest was missing on examples - added. * cleanup * add compiler switch comment * draft * remove link * add year_month_day * fix link * draft text about sys_days, local_days * remove extra tagging, fix line spacing * fix description * put operators in better order * update local_days/sys_days desc. * incorp tech review Co-authored-by: TylerMSFT <[email protected]>
1 parent 76d2be4 commit adb0bf8

17 files changed

+909
-245
lines changed

docs/standard-library/chrono-functions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: &lt;chrono&gt; functions"
33
title: "&lt;chrono&gt; functions"
4-
ms.date: 6/10/2021
4+
ms.date: 6/16/2021
55
f1_keywords: ["chrono/std::duration_cast", "chrono/std::time_point_cast", "chrono/std::from_stream", "chrono/std::chrono::duration_cast", "chrono/std::chrono::time_point_cast", "chrono/std::chrono::from_stream", "chrono/std::chrono::floor", "chrono/std::chrono::ceil", "chrono/std::chrono::round", "chrono/std::chrono::is_am", "chrono/std::chrono::is_pm", "chrono/std::chrono::make12", "chrono/std::chrono::make24", "chrono/std::chrono::get_leap_second_info", "chrono/std::chrono::get_tzdb", "chrono/std::chrono::get_tzdb_list", "chrono/std::chrono::locate_zone", "chrono/std::chrono::current_zone", "chrono/std::chrono::reload_tzdb", "chrono/std::chrono::remote_version"]
66
helpviewer_keywords: ["std::duration_cast function", "std::time_point_cast function", "std::chrono::duration_cast function", "std::chrono::time_point_cast function", "std::chrono::from_stream function", "std::chrono::floor function", "std::chrono::ceil function", "std::chrono::round function", "std::chrono::is_am function", "std::chrono::is_pm function", "std::chrono::make12 function", "std::chrono::make24 function", "std::chrono::get_leap_second_info function", "std::chrono::get_tzdb function", "std::chrono::get_tzdb_list function", "std::chrono::locate_zone function", "std::chrono::current_zone function", "std::chrono::reload_tzdb function", "std::chrono::remote_version function"]
77
---
@@ -196,7 +196,7 @@ Returns the largest time point representable using `ToDuration` that's less than
196196
197197
## <a name="std-chrono-from-stream"></a> `from_stream`
198198
199-
Parse the input stream into one of the `std::chrono` time or interval types such as `day`, `month`, `month_day`, `weekday`, `year`, and so on, using the specified format.
199+
Parse the input stream into one of the `std::chrono` time or interval types such as `day`, `month`, `month_day`, `weekday`, `year`, `year_month`, `year_month_day`, and so on, using the specified format.
200200
201201
If the parse fails, `is.setstate`(`ios_base::failbit`) is called and the output parameter isn't modified.
202202
@@ -397,6 +397,7 @@ The input stream, *`is`*
397397
### Example: `from_stream`
398398

399399
```cpp
400+
// compile using: /std:c++latest
400401
#include <chrono>
401402
#include <iostream>
402403

0 commit comments

Comments
 (0)