Cppreference mentions function current_zone()
as part of the timezone implementation in <chrono>
. Has this feature been implemented in GCC or Clang? I would like to test it in one of the online tools, such as https://wandbox.org or https://godbolt.org/, but it seems to be missing.
Does GCC or Clang implement chrono::current_zone()?
Compiler support for C++20 - cppreference.com
So there is some support, but basically you have to check compilers documentation to se in details what is already implemented, or just try and see. For now using example from docks compiles only for msvc.
Note this feature is based on Howard Hinnant's date library which you can use with older version of C++ standard.
There's also Howard Hinnant's date library. I thought that's what the proposal is based on. –
Launcher
There are no results in https://github.com/llvm/llvm-project/search?q=current_zone (except clangd indexer) and in https://github.com/gcc-mirror/gcc/search?q=current_zone (except for disabled chrono C++20 conformance test stuff).
Does GCC or Clang implement chrono::current_zone()?
No, not currently.
© 2022 - 2024 — McMap. All rights reserved.