mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:30:04 +00:00
25 lines
330 B
C++
25 lines
330 B
C++
#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
|