12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-03-31
- * Changed: 2024-09-11
- *
- * */
- #ifndef LS_STD_DATE_PARAMETER_MAPPER_HPP
- #define LS_STD_DATE_PARAMETER_MAPPER_HPP
- #include "DateParameter.hpp"
- #include <ls-std/os/dynamic-goal.hpp>
- #include <ls-std/time/type/DateParameterTypes.hpp>
- #ifdef _WIN32
- #include <windows.h>
- #endif
- /*
- * @doc: class(name: 'DateParameterMapper', package: 'time')
- * @doc: time.DateParameterMapper.description('This class maps date information to either an internal POSIX clock or an internal Windows clock, which can then be processed for setting the system time.')
- * */
- namespace ls::std::time
- {
- class LS_STD_DYNAMIC_GOAL DateParameterMapper
- {
- public:
- DateParameterMapper();
- ~DateParameterMapper();
- #if defined(unix) || defined(__APPLE__)
- [[nodiscard]] static ls::std::time::type::UnixTimestamp toUnixTimestamp(const ls::std::time::DateParameter &_dateParameter);
- #endif
- #ifdef _WIN32
- [[nodiscard]] static SYSTEMTIME toWindowsSystemTime(const ls::std::time::DateParameter &_dateParameter);
- #endif
- };
- }
- #endif
|