Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

Time zones are a particularly annoying problem when dealing with time. The C++20 extension to std::chrono also introduced support for time zones. The list of supported time zones can be queried through the time zone database. Alternatively, a time zone can be located directly using its name. While std::chrono::sys_time is always UTC, the library now also supports unzoned time in the form of std::chrono::local_time. Unzoned time can be combined with a specific time zone to produce a std::chrono::zoned_time, which can then be converted to other time zones. Compiler Explorer link: https://lnkd.in/dWhka8F3 #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Wasn’t there an odd time zone problem - tz_convert and tz_lock. Wonder if they fixed that.

Like
Reply

Finally , assuming it’s bug free

Like
Reply

MSVC is buggy. Howard's reference implementation must be installed.

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories