|
| static const unsigned int | min_year = 1400 |
| |
| static const unsigned int | max_year = 9999 |
| |
Definition at line 45 of file gnc-timezone.hpp.
◆ TimeZoneProvider()
| TimeZoneProvider::TimeZoneProvider |
( |
| ) |
|
|
inline |
◆ dump()
| void TimeZoneProvider::dump |
( |
| ) |
const |
|
noexcept |
Definition at line 779 of file gnc-timezone.cpp.
780{
781 for (const auto& zone : m_zone_vector)
782 std::cout << zone.first << ": " << zone.second->to_posix_string() << "\n";
783}
◆ get()
| TZ_Ptr TimeZoneProvider::get |
( |
int |
year | ) |
const |
|
noexcept |
Definition at line 767 of file gnc-timezone.cpp.
768{
769 if (m_zone_vector.empty())
770 return TZ_Ptr(new PTZ("UTC0"));
771 auto iter = find_if(m_zone_vector.rbegin(), m_zone_vector.rend(),
772 [=](TZ_Entry e) { return e.first <= year; });
773 if (iter == m_zone_vector.rend())
774 return m_zone_vector.front().second;
775 return iter->second;
776}
◆ max_year
| const unsigned int TimeZoneProvider::max_year = 9999 |
|
static |
◆ min_year
| const unsigned int TimeZoneProvider::min_year = 1400 |
|
static |
The documentation for this class was generated from the following files: