DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <tz.hpp>
Public Member Functions | |
DB () | |
boost::local_time::time_zone_ptr | get_tz_ptr (const std::string ®ion) |
Get boost time-zone pointer from string. | |
std::vector< std::string > | get_regions () |
Get known time zone regions. | |
Private Attributes | |
boost::local_time::tz_database | m_tz_db |
The class provides access to Boost time-zone database. It relies on Boost time-zone database file installed by oksutils package and pointed by BOOST_DATE_TIME_TZ_SPEC process environment variable.
oks::tz::DB::DB | ( | ) |
Find and read Boost time-zone database.
Definition at line 15 of file oks_tz.cpp.
std::vector< std::string > oks::tz::DB::get_regions | ( | ) |
Get known time zone regions.
This is a helper function for several utilities dealing with Boost time-zone database.
std::exception | if something goes wrong |
Definition at line 54 of file oks_tz.cpp.
boost::local_time::time_zone_ptr oks::tz::DB::get_tz_ptr | ( | const std::string & | region | ) |
Get boost time-zone pointer from string.
This is a helper method for several utilities dealing with Boost time-zone database.
region | name of time zone |
std::exception | if something goes wrong |
Definition at line 39 of file oks_tz.cpp.