Entries by Rainer Grimm

My ALS Journey: 9/n with Hector

I initially thought that this status report was not particularly exciting. I was very wrong, but read it for yourself. >> My ALS Journey so far << How I Work I have had a suitable wheelchair for a few days now. It is an excellent help to me in my daily work. Now, I can […]

C++20: Query Calendar Dates and Ordinal Dates

The extended chrono library makes it relatively easy to ask for the time duration between calendar dates. This post is the sixth in my detailed journey through the chrono extension in C++20: Query Calendar Dates Without further ado, the following program queryCalendarDates.cpp queries a few calendar dates. // queryCalendarDates.cpp #include <chrono> #include <iostream> int main() […]

C++20: Displaying and Checking Calendar Dates

I created calendar dates in my last post, “C++20: Creating Calendar Dates,” and I will display and check them today. This post is the fifth in my detailed journey through the chrono extension in C++20: Displaying Calendar Dates Thanks to std::chrono::local_days or std::chrono::sys_days, you can convert calendar dates to a local or a system std::chrono::time_point. […]

C++20: Creating Calendar Dates

In this post, I will dive deeper into calendar dates and create them. If this post is too overwhelming for you, read my previous ones: C++20 supports constants and literals to make using calendar-date types more convenient. Constants and Literals for Calendar Types Let me start with the constants for std::chrono::weekday, and std::chrono::month. std::chrono::Monday std::chrono::Thuesday […]

My ALS Journey: 8/n with Easter Present

I’m happy to announce the second money-raising campaign for ALS research. This time, I’m proud to say that Andreas Fertig, Bartłomiej Filipek, Jason Turner, and Dmitry Vostokov will participate. My ALS Journey so far C++ Classes and Mentoring In the last three weeks, I have given three online classes. Additionally, each Friday, there is my […]

C++20: Time of Day

This new data type std::chrono::hh_mm_ss in C++20 stands for the time of day. Time of Day std::chrono::hh_mm_ss is the duration since midnight split into hours, minutes, seconds, and fractional seconds. This type is typically used as a formatting tool. First, the following table gives you a concise overview of std::chrono::hh_mm_ss instance tOfDay. Depending on the […]

C++20: Basic Chrono Terminology with Time Duration and Time Point

Today, I continue my journey through the basic types with time durations and time points. Time Durations C++14 introduced helper types such as std::chrono::seconds for time durations and corresponding time literals such as 5s. C++20 added new helper types. The following table shows all for completeness. Often the time duration std::chrono::days and the calendar date […]

C++20: Basic Chrono Terminology

To get the most out of the chrono extension in C++20, a basic understanding of the chrono terminology is essential. Basic Chrono Terminology Essentially, the time-zone functionality (C++20) is based on the calendar functionality (C++20) and the calendar functionality (C++20), which are based on the chrono functionality (C++11). Consequently, this basic chrono terminology starts with […]