mirror of
				https://github.com/fmtlib/fmt.git
				synced 2025-11-03 23:51:41 +01:00 
			
		
		
		
	Implement locale-specific minute formatting
This commit is contained in:
		@@ -107,5 +107,8 @@ TEST(TimeTest, ChronoLocale) {
 | 
			
		||||
  EXPECT_EQ(str(), fmt::format(loc, "{:%OH}", std::chrono::hours(14)));
 | 
			
		||||
  os << std::put_time(&time, "%OI");
 | 
			
		||||
  EXPECT_EQ(str(), fmt::format(loc, "{:%OI}", std::chrono::hours(14)));
 | 
			
		||||
  time.tm_minute = 42;
 | 
			
		||||
  os << std::put_time(&time, "%OM");
 | 
			
		||||
  EXPECT_EQ(str(), fmt::format(loc, "{:%OM}", std::chrono::minutes(42)));
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user