Skip to content

Commit 97ec420

Browse files
authored
Merge pull request MicrosoftDocs#3906 from barcharcraz/chrono_windows_version
Add note about supported windows versions to <chrono>
2 parents 68ef587 + 6153b3a commit 97ec420

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/standard-library/chrono.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Beginning in Visual Studio 2015, the implementation of `steady_clock` has change
1414
- `high_resolution_clock` is now a typedef for `steady_clock`
1515
In the Microsoft C++ implementation, `steady_clock::time_point` is now a `typedef` for `chrono::time_point<steady_clock>`. However, this isn't necessarily the case for other implementations.
1616

17+
While the STL generally provides all features on all supported versions of Windows, leap seconds and time zones (which change over time) require OS support that was added to Windows 10. Specifically, updating the leap second database requires Windows 10 version 1809 or later, and time zones require icu.dll which is provided by Windows 10 version 1903/19H1 or later. This applies to both client and server OSes; note that Windows Server 2019 is based on Windows 10 version 1809. Attempting to use the time-zone facilities when running on older versions of windows will result in a runtime error.
18+
1719
## Requirements
1820

1921
**Header:** `<chrono>`

0 commit comments

Comments
 (0)