In this post, we will see how to resolve std::zoned_time on Windows Server not working Question: I’ve encountered a weird problem with std::chrono::zoned_time{}. Even oddly it works on my machine not the remote sever I’m building this app for. This ...

Question: I’m exploring the timestamp in C++ 20 returned from system_clock::now() and when I print out the returned std::chrono::time_point it prints the date and time in the format YYYY-MM-DD HH:MM:SS.xxxxxxx. Any idea what the xxxxxxx value is? I assumed microseconds ...

Question: Is is the number of nanoseconds passed since 1970? Answer: Is is the number of nanoseconds passed since 1970? Very unlikely. It is the number of some duration unit passed since some time. Neither the unit nor the epoch ...

Question: I’m trying to use C++ std::format in Visual Studio 2022. I’ve selected C++ Language Standard: “Preview – Features from the Latest C++ Working Draft (/std:c++latest)” after initially trying “ISO C++20 Standard (/std:c++20)” The post below seems to indicate that ...

Question: I’m working on a multi-threaded project. I am using CMake to compile. I have one file/function that sets a bool to true every so often My test function that is having problems is The basic outline of my test ...

Question: I am very confused about something. Given: prints something like: 16466745672980000 (for example) How do I rehydrate that number back into a time_point object? I find myself doing kooky things (that I’d rather not show here) and I’d like ...