| 123456789101112131415161718192021222324252627 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-04-01
- * Changed: 2025-12-23
- *
- * */
- #include <ls-std/time/common/DateParameterMapper.hpp>
- #include <ls-std/time/system-time/WindowsClock.hpp>
- #define NOMINMAX
- #include <windows.h>
- using ls::std::time::DateParameter;
- using ls::std::time::DateParameterMapper;
- using ls::std::time::WindowsClock;
- WindowsClock::WindowsClock() = default;
- WindowsClock::~WindowsClock() noexcept = default;
- bool WindowsClock::setTime(const DateParameter &_dateParameter)
- {
- const SYSTEMTIME systemTime = DateParameterMapper::toWindowsSystemTime(_dateParameter);
- return SetLocalTime(&systemTime);
- }
|