| 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 | |
| 7 | #ifndef BOOST_LOCALE_TIME_ZONE_HPP_INCLUDED |
| 8 | #define BOOST_LOCALE_TIME_ZONE_HPP_INCLUDED |
| 9 | |
| 10 | #include <boost/locale/config.hpp> |
| 11 | #include <string> |
| 12 | |
| 13 | #ifdef BOOST_MSVC |
| 14 | # pragma warning(push) |
| 15 | # pragma warning(disable : 4275 4251 4231 4660) |
| 16 | #endif |
| 17 | |
| 18 | namespace boost { namespace locale { |
| 19 | /// \addtogroup date_time |
| 20 | /// |
| 21 | /// @{ |
| 22 | |
| 23 | /// \brief namespace that holds functions for operating with global |
| 24 | /// time zone |
| 25 | namespace time_zone { |
| 26 | /// Get global time zone identifier. If empty, system time zone is used |
| 27 | BOOST_LOCALE_DECL std::string global(); |
| 28 | /// Set global time zone identifier returning previous one. If empty, system time zone is used |
| 29 | BOOST_LOCALE_DECL std::string global(const std::string& new_tz); |
| 30 | } // namespace time_zone |
| 31 | |
| 32 | /// @} |
| 33 | |
| 34 | }} // namespace boost::locale |
| 35 | |
| 36 | #ifdef BOOST_MSVC |
| 37 | # pragma warning(pop) |
| 38 | #endif |
| 39 | |
| 40 | #endif |
| 41 | |