NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <tz.h>
Public Member Functions | |
time_zone (time_zone &&)=default | |
time_zone & | operator= (time_zone &&)=default |
DATE_API | time_zone (const std::string &s, detail::undocumented) |
const std::string & | name () const NOEXCEPT |
template<class Duration > | |
sys_info | get_info (sys_time< Duration > st) const |
template<class Duration > | |
local_info | get_info (local_time< Duration > tp) const |
template<class Duration > | |
sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_sys (local_time< Duration > tp) const |
template<class Duration > | |
sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_sys (local_time< Duration > tp, choose z) const |
template<class Duration > | |
local_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_local (sys_time< Duration > tp) const |
DATE_API void | add (const std::string &s) |
Private Member Functions | |
DATE_API sys_info | get_info_impl (sys_seconds tp) const |
DATE_API local_info | get_info_impl (local_seconds tp) const |
template<class Duration > | |
sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_sys_impl (local_time< Duration > tp, choose z, std::false_type) const |
template<class Duration > | |
sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_sys_impl (local_time< Duration > tp, choose, std::true_type) const |
DATE_API sys_info | get_info_impl (sys_seconds tp, int timezone) const |
DATE_API void | adjust_infos (const std::vector< detail::Rule > &rules) |
DATE_API void | parse_info (std::istream &in) |
Private Attributes | |
std::string | name_ |
std::vector< detail::zonelet > | zonelets_ |
std::unique_ptr< std::once_flag > | adjusted_ |
Friends | |
bool | operator== (const time_zone &x, const time_zone &y) NOEXCEPT |
bool | operator< (const time_zone &x, const time_zone &y) NOEXCEPT |
DATE_API std::ostream & | operator<< (std::ostream &os, const time_zone &z) |
|
default |
|
explicit |
Definition at line 2231 of file tz.cpp.
References name_, parse_info(), and zonelets_.
void time_zone::add | ( | const std::string & | s | ) |
Definition at line 2284 of file tz.cpp.
References parse_info(), and zonelets_.
|
private |
Definition at line 2336 of file tz.cpp.
References date::detail::Rule::abbrev(), date::find_first_std_rule(), date::find_next_rule(), date::find_rule_for_zone(), date::detail::zonelet::has_rule, date::detail::zonelet::has_save, date::detail::zonelet::is_empty, date::year::max(), date::year::min(), name_, date::parse_signed_time(), to_sys(), date::detail::zonelet::until_loc_, date::detail::zonelet::until_std_, date::detail::zonelet::until_utc_, and zonelets_.
Referenced by get_info_impl().
|
inline |
Definition at line 893 of file tz.h.
References get_info_impl().
Definition at line 885 of file tz.h.
References get_info_impl().
Referenced by to_local(), and to_sys_impl().
|
private |
Definition at line 2259 of file tz.cpp.
References date::local_info::ambiguous, date::local_info::first, get_info_impl(), and date::local_info::nonexistent.
|
private |
Definition at line 2253 of file tz.cpp.
References get_info_impl().
Referenced by get_info(), and get_info_impl().
|
private |
Definition at line 2507 of file tz.cpp.
References adjust_infos(), adjusted_, date::get_tzdb(), date::max_year, date::min_year, date::year_month_day::year(), and zonelets_.
|
inline |
|
private |
Definition at line 2304 of file tz.cpp.
References date::detail::MonthDayTime::canonicalize(), date::detail::zonelet::format_, date::detail::zonelet::gmtoff_, date::year::max(), date::max_day, date::max_year, date::min_year, date::parse_signed_time(), date::detail::zonelet::U::rule_, date::detail::zonelet::u, date::detail::zonelet::until_date_, date::detail::zonelet::until_year_, and zonelets_.
Referenced by add(), and time_zone().
|
inline |
Definition at line 917 of file tz.h.
References get_info().
|
inline |
Definition at line 901 of file tz.h.
References to_sys_impl().
Referenced by adjust_infos().
|
inline |
Definition at line 909 of file tz.h.
References to_sys_impl().
|
private |
Definition at line 934 of file tz.h.
References date::local_info::ambiguous, get_info(), date::latest, and date::local_info::nonexistent.
Referenced by to_sys().
|
private |
Definition at line 951 of file tz.h.
References date::local_info::ambiguous, get_info(), and date::local_info::nonexistent.
|
private |
Definition at line 788 of file tz.h.
Referenced by get_info_impl().
|
private |
Definition at line 781 of file tz.h.
Referenced by adjust_infos(), name(), and time_zone().
|
private |
Definition at line 786 of file tz.h.
Referenced by add(), adjust_infos(), get_info_impl(), parse_info(), and time_zone().