123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * 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 <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')
- * */
- 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
|