/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-03-31 * Changed: 2024-09-09 * * */ #ifndef LS_STD_DATE_PARAMETER_MAPPER_HPP #define LS_STD_DATE_PARAMETER_MAPPER_HPP #include "DateParameter.hpp" #include #include #ifdef _WIN32 #include #endif /* * @doc: class(name: 'DateParameterMapper', package: '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