timezone.hpp 842 B

12345678910111213141516171819202122232425262728293031
  1. // (C) Copyright Howard Hinnant
  2. // (C) Copyright 2010-2011 Vicente J. Botet Escriba
  3. // Use, modification and distribution are subject to the Boost Software License,
  4. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt).
  6. //
  7. // This code was adapted by Vicente from Howard Hinnant's experimental work
  8. // on chrono i/o to Boost
  9. #ifndef BOOST_CHRONO_IO_TIMEZONE_HPP
  10. #define BOOST_CHRONO_IO_TIMEZONE_HPP
  11. #include <boost/core/scoped_enum.hpp>
  12. namespace boost
  13. {
  14. namespace chrono
  15. {
  16. /**
  17. * Scoped enumeration emulation stating whether the time_point for system_clock I/O is UTC or local.
  18. */
  19. BOOST_SCOPED_ENUM_DECLARE_BEGIN(timezone)
  20. {
  21. utc, local
  22. }
  23. BOOST_SCOPED_ENUM_DECLARE_END(timezone)
  24. } // chrono
  25. } // boost
  26. #endif // header