1234567891011121314151617181920212223242526 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-04-01
- * Changed: 2023-04-01
- *
- * */
- #include <ls-std/time/common/DateParameterMapper.hpp>
- #include <ls-std/time/system-time/WindowsClock.hpp>
- #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)
- {
- SYSTEMTIME systemTime = DateParameterMapper::toWindowsSystemTime(_dateParameter);
- return SetLocalTime(&systemTime);
- }
|