time.hpp 692 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_TIME_HPP
  8. #define BOOST_MYSQL_TIME_HPP
  9. #include <chrono>
  10. namespace boost {
  11. namespace mysql {
  12. /// Type representing MySQL `TIME` data type.
  13. using time = std::chrono::microseconds;
  14. /// The minimum allowed value for \ref time.
  15. constexpr time min_time = -std::chrono::hours(839);
  16. /// The maximum allowed value for \ref time.
  17. constexpr time max_time = std::chrono::hours(839);
  18. } // namespace mysql
  19. } // namespace boost
  20. #endif