mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:30:05 +00:00 
			
		
		
		
	QDate::toStdSysDays is needlessly behind __cpp_lib_chrono >= 201907L
This commit is contained in:
		
							parent
							
								
									1479525c4a
								
							
						
					
					
						commit
						5a078800e4
					
				
					 4 changed files with 56 additions and 4 deletions
				
			
		
							
								
								
									
										25
									
								
								scwx-qt/source/scwx/qt/util/time.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								scwx-qt/source/scwx/qt/util/time.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <chrono> | ||||
| 
 | ||||
| #include <QDateTime> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace util | ||||
| { | ||||
| 
 | ||||
| /**
 | ||||
|  * @brief Convert QDate to std::chrono::sys_days. | ||||
|  * | ||||
|  * @param [in] date Date to convert | ||||
|  * | ||||
|  * @return Days | ||||
|  */ | ||||
| std::chrono::sys_days SysDays(const QDate& date); | ||||
| 
 | ||||
| } // namespace util
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat