#include "SystemTimeProvider.h" namespace nxl::autostore::infrastructure { SystemTimeProvider::Clock::time_point SystemTimeProvider::now() const { return Clock::now(); } std::tm SystemTimeProvider::to_tm(const Clock::time_point& timePoint) const { auto time_t_now = Clock::to_time_t(timePoint); return *std::localtime(&time_t_now); } SystemTimeProvider::Clock::time_point SystemTimeProvider::from_tm(const std::tm& tm) const { return Clock::from_time_t(std::mktime(const_cast(&tm))); } } // namespace nxl::autostore::infrastructure