std::chrono::year_month_day_last::ok
来自cppreference.com
                    
                                        
                    < cpp | chrono | year month day last
                    
                                                            
                    |   constexpr bool ok() const noexcept;  | 
(C++20 起) | |
检查 *this 是否表示合法日期。因为 year_month_day_last 表示特定月的最后一日,故只要年和月合法它就表示合法日期。
返回值
year().ok() && month().ok()