DateParameterMapper.hpp 862 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-31
  6. * Changed: 2024-05-31
  7. *
  8. * */
  9. #ifndef LS_STD_DATE_PARAMETER_MAPPER_HPP
  10. #define LS_STD_DATE_PARAMETER_MAPPER_HPP
  11. #include "DateParameter.hpp"
  12. #include <ls-std/core/definition.hpp>
  13. #include <ls-std/time/type/DateParameterTypes.hpp>
  14. #ifdef _WIN32
  15. #include <windows.h>
  16. #endif
  17. namespace ls::std::time
  18. {
  19. ls_std_class DateParameterMapper
  20. {
  21. public:
  22. DateParameterMapper();
  23. ~DateParameterMapper();
  24. #if defined(unix) || defined(__APPLE__)
  25. [[nodiscard]] static type::UnixTimestamp toUnixTimestamp(const DateParameter &_dateParameter);
  26. #endif
  27. #ifdef _WIN32
  28. [[nodiscard]] static SYSTEMTIME toWindowsSystemTime(const DateParameter &_dateParameter);
  29. #endif
  30. };
  31. }
  32. #endif