#c++

C++ time sucks: incomplete time parsing



C++ time parsing is trash. HowardHinnant/date is equally bad, but it also adds timezone parsing. C++20's time additions is just HowardHinnant/date without the name. Using the old std::get_time, because the vast majority of distros and compilers haven't implemented the new garbage (HowardHinnant/date), and it doesn't fix the core problem anyway. Say you have a date similar to what journald logs contain: Aug 17 22:17:44. Guess what happens if you try parsing it.