time_zone.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // https://www.boost.org/LICENSE_1_0.txt
  6. #ifndef BOOST_LOCALE_TIME_ZONE_HPP_INCLUDED
  7. #define BOOST_LOCALE_TIME_ZONE_HPP_INCLUDED
  8. #include <boost/locale/config.hpp>
  9. #include <string>
  10. #ifdef BOOST_MSVC
  11. # pragma warning(push)
  12. # pragma warning(disable : 4275 4251 4231 4660)
  13. #endif
  14. namespace boost { namespace locale {
  15. /// \addtogroup date_time
  16. ///
  17. /// @{
  18. /// \brief namespace that holds functions for operating with global
  19. /// time zone
  20. namespace time_zone {
  21. /// Get global time zone identifier. If empty, system time zone is used
  22. BOOST_LOCALE_DECL std::string global();
  23. /// Set global time zone identifier returning previous one. If empty, system time zone is used
  24. BOOST_LOCALE_DECL std::string global(const std::string& new_tz);
  25. } // namespace time_zone
  26. /// @}
  27. }} // namespace boost::locale
  28. #ifdef BOOST_MSVC
  29. # pragma warning(pop)
  30. #endif
  31. #endif