time_zone.hpp 1.2 KB

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