NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <ptz.h>
Public Member Functions | |
time_zone (const detail::string_t &name) | |
template<class Duration > | |
date::sys_info | get_info (date::sys_time< Duration > st) const |
template<class Duration > | |
date::local_info | get_info (date::local_time< Duration > tp) const |
template<class Duration > | |
date::sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_sys (date::local_time< Duration > tp) const |
template<class Duration > | |
date::sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_sys (date::local_time< Duration > tp, date::choose z) const |
template<class Duration > | |
date::local_time< typename std::common_type< Duration, std::chrono::seconds >::type > | to_local (date::sys_time< Duration > tp) const |
const time_zone * | operator-> () const |
std::string | name () const |
Private Member Functions | |
date::sys_seconds | get_start (date::year y) const |
date::sys_seconds | get_prev_start (date::year y) const |
date::sys_seconds | get_next_start (date::year y) const |
date::sys_seconds | get_end (date::year y) const |
date::sys_seconds | get_prev_end (date::year y) const |
date::sys_seconds | get_next_end (date::year y) const |
date::sys_info | contant_offset () const |
Private Attributes | |
std::string | std_abbrev_ |
std::string | dst_abbrev_ = {} |
std::chrono::seconds | offset_ |
std::chrono::seconds | save_ = std::chrono::hours{1} |
detail::rule | start_rule_ |
detail::rule | end_rule_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const time_zone &z) |
bool | operator== (const time_zone &x, const time_zone &y) |
|
inlineexplicit |
Definition at line 343 of file ptz.h.
References dst_abbrev_, end_rule_, offset_, Posix::detail::read_date(), Posix::detail::read_name(), Posix::detail::read_signed_time(), save_, start_rule_, std_abbrev_, and Posix::detail::throw_invalid().
|
private |
Definition at line 326 of file ptz.h.
References date::December, date::January, max, min, offset_, and std_abbrev_.
Referenced by get_info().
|
inlineprivate |
date::local_info time_zone::get_info | ( | date::local_time< Duration > | tp | ) | const |
Definition at line 456 of file ptz.h.
References date::ceil(), contant_offset(), date::December, dst_abbrev_, date::floor(), get_end(), get_info(), get_next_end(), get_next_start(), get_prev_end(), get_prev_start(), get_start(), date::January, offset_, Posix::detail::rule::ok(), save_, start_rule_, and std_abbrev_.
date::sys_info time_zone::get_info | ( | date::sys_time< Duration > | st | ) | const |
Definition at line 380 of file ptz.h.
References date::ceil(), contant_offset(), date::December, dst_abbrev_, date::floor(), get_end(), get_next_end(), get_next_start(), get_prev_end(), get_prev_start(), get_start(), date::January, offset_, Posix::detail::rule::ok(), save_, start_rule_, and std_abbrev_.
Referenced by get_info(), to_local(), and to_sys().
|
inlineprivate |
|
inlineprivate |
Definition at line 299 of file ptz.h.
References offset_, and start_rule_.
Referenced by get_info().
|
inlineprivate |
|
inlineprivate |
Definition at line 292 of file ptz.h.
References offset_, and start_rule_.
Referenced by get_info().
|
inlineprivate |
Definition at line 285 of file ptz.h.
References offset_, and start_rule_.
Referenced by get_info().
|
inline |
Definition at line 588 of file ptz.h.
References dst_abbrev_, end_rule_, offset_, Posix::detail::rule::ok(), save_, start_rule_, std_abbrev_, and Posix::detail::rule::to_string().
|
inline |
date::local_time< typename std::common_type< Duration, std::chrono::seconds >::type > time_zone::to_local | ( | date::sys_time< Duration > | tp | ) | const |
Definition at line 566 of file ptz.h.
References get_info().
date::sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > time_zone::to_sys | ( | date::local_time< Duration > | tp | ) | const |
Definition at line 530 of file ptz.h.
References get_info().
date::sys_time< typename std::common_type< Duration, std::chrono::seconds >::type > time_zone::to_sys | ( | date::local_time< Duration > | tp, |
date::choose | z | ||
) | const |
Definition at line 546 of file ptz.h.
References get_info().
|
friend |
|
private |
Definition at line 239 of file ptz.h.
Referenced by get_info(), name(), and time_zone().
|
private |
Definition at line 243 of file ptz.h.
Referenced by get_end(), get_next_end(), get_prev_end(), name(), and time_zone().
|
private |
Definition at line 240 of file ptz.h.
Referenced by contant_offset(), get_end(), get_info(), get_next_end(), get_next_start(), get_prev_end(), get_prev_start(), get_start(), name(), and time_zone().
|
private |
Definition at line 241 of file ptz.h.
Referenced by get_end(), get_info(), get_next_end(), get_prev_end(), name(), and time_zone().
|
private |
Definition at line 242 of file ptz.h.
Referenced by get_info(), get_next_start(), get_prev_start(), get_start(), name(), and time_zone().
|
private |
Definition at line 238 of file ptz.h.
Referenced by contant_offset(), get_info(), name(), and time_zone().