| 105 | } |
| 106 | |
| 107 | static inline Result<std::locale> GetLocale(const std::string& locale) { |
| 108 | try { |
| 109 | return std::locale(locale.c_str()); |
| 110 | } catch (const std::runtime_error& ex) { |
| 111 | return Status::Invalid("Cannot find locale '", locale, "': ", ex.what()); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | struct NonZonedLocalizer { |
| 116 | using days_t = sys_days; |