A real time zone. More...
#include <custom_time_zone.hpp>


Public Types | |
| typedef  boost::posix_time::time_duration  | time_duration_type | 
| typedef  date_time::time_zone_base < posix_time::ptime, CharT >  | base_type | 
| typedef base_type::string_type | string_type | 
| typedef  base_type::stringstream_type  | stringstream_type | 
| typedef  date_time::time_zone_names_base < CharT >  | time_zone_names | 
| typedef CharT | char_type | 
| typedef  posix_time::ptime::date_type::year_type  | year_type | 
Public Member Functions | |
| custom_time_zone_base (const time_zone_names &zone_names, const time_duration_type &utc_offset, const dst_adjustment_offsets &dst_shift, boost::shared_ptr< dst_calc_rule > calc_rule) | |
| virtual | ~custom_time_zone_base () | 
| virtual string_type | dst_zone_abbrev () const | 
| String for the timezone when in daylight savings (eg: EDT)  More... | |
| virtual string_type | std_zone_abbrev () const | 
| String for the zone when not in daylight savings (eg: EST)  More... | |
| virtual string_type | dst_zone_name () const | 
| String for the timezone when in daylight savings (eg: Eastern Daylight Time)  More... | |
| virtual string_type | std_zone_name () const | 
| String for the zone when not in daylight savings (eg: Eastern Standard Time)  More... | |
| virtual bool | has_dst () const | 
| True if zone uses daylight savings adjustments.  More... | |
| virtual posix_time::ptime | dst_local_start_time (gregorian::greg_year y) const | 
| Local time that DST starts – NADT if has_dst is false.  More... | |
| virtual posix_time::ptime | dst_local_end_time (gregorian::greg_year y) const | 
| Local time that DST ends – NADT if has_dst is false.  More... | |
| virtual time_duration_type | base_utc_offset () const | 
| Base offset from UTC for zone (eg: -07:30:00)  More... | |
| virtual time_duration_type | dst_offset () const | 
| Adjustment forward or back made while DST is in effect.  More... | |
| virtual string_type | to_posix_string () const | 
| Returns a POSIX time_zone string for this object.  More... | |
| virtual posix_time::ptime | dst_local_start_time (year_type y) const =0 | 
| Local time that DST starts – undefined if has_dst is false.  More... | |
| virtual posix_time::ptime | dst_local_end_time (year_type y) const =0 | 
| Local time that DST ends – undefined if has_dst is false.  More... | |
A real time zone.
| typedef date_time::time_zone_base<posix_time::ptime,CharT> boost::local_time::custom_time_zone_base< CharT >::base_type | 
| typedef CharT boost::local_time::custom_time_zone_base< CharT >::char_type | 
| typedef base_type::string_type boost::local_time::custom_time_zone_base< CharT >::string_type | 
| typedef base_type::stringstream_type boost::local_time::custom_time_zone_base< CharT >::stringstream_type | 
| typedef boost::posix_time::time_duration boost::local_time::custom_time_zone_base< CharT >::time_duration_type | 
| typedef date_time::time_zone_names_base<CharT> boost::local_time::custom_time_zone_base< CharT >::time_zone_names | 
      
  | 
  inherited | 
      
  | 
  inline | 
      
  | 
  inlinevirtual | 
      
  | 
  inlinevirtual | 
Base offset from UTC for zone (eg: -07:30:00)
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
Referenced by boost::local_time::custom_time_zone_base< CharT >::to_posix_string().
      
  | 
  pure virtualinherited | 
Local time that DST ends – undefined if has_dst is false.
      
  | 
  inlinevirtual | 
Local time that DST ends – NADT if has_dst is false.
References boost::date_time::dst_adjustment_offsets< time_duration_type >::dst_end_offset_, and boost::date_time::not_a_date_time.
      
  | 
  pure virtualinherited | 
Local time that DST starts – undefined if has_dst is false.
      
  | 
  inlinevirtual | 
Local time that DST starts – NADT if has_dst is false.
References boost::date_time::dst_adjustment_offsets< time_duration_type >::dst_start_offset_, and boost::date_time::not_a_date_time.
      
  | 
  inlinevirtual | 
Adjustment forward or back made while DST is in effect.
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
References boost::date_time::dst_adjustment_offsets< time_duration_type >::dst_adjust_.
Referenced by boost::local_time::custom_time_zone_base< CharT >::to_posix_string().
      
  | 
  inlinevirtual | 
String for the timezone when in daylight savings (eg: EDT)
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
References boost::date_time::time_zone_names_base< CharT >::dst_zone_abbrev().
Referenced by boost::local_time::custom_time_zone_base< CharT >::to_posix_string().
      
  | 
  inlinevirtual | 
String for the timezone when in daylight savings (eg: Eastern Daylight Time)
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
References boost::date_time::time_zone_names_base< CharT >::dst_zone_name().
      
  | 
  inlinevirtual | 
True if zone uses daylight savings adjustments.
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
      
  | 
  inlinevirtual | 
String for the zone when not in daylight savings (eg: EST)
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
References boost::date_time::time_zone_names_base< CharT >::std_zone_abbrev().
Referenced by boost::local_time::custom_time_zone_base< CharT >::to_posix_string().
      
  | 
  inlinevirtual | 
String for the zone when not in daylight savings (eg: Eastern Standard Time)
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
References boost::date_time::time_zone_names_base< CharT >::std_zone_name().
      
  | 
  inlinevirtual | 
Returns a POSIX time_zone string for this object.
Implements boost::date_time::time_zone_base< posix_time::ptime, CharT >.
References boost::local_time::custom_time_zone_base< CharT >::base_utc_offset(), boost::date_time::dst_adjustment_offsets< time_duration_type >::dst_end_offset_, boost::local_time::custom_time_zone_base< CharT >::dst_offset(), boost::date_time::dst_adjustment_offsets< time_duration_type >::dst_start_offset_, boost::local_time::custom_time_zone_base< CharT >::dst_zone_abbrev(), boost::date_time::time_duration< T, rep_type >::hours(), boost::date_time::time_duration< T, rep_type >::invert_sign(), boost::multiprecision::backends::detail::is_negative, boost::date_time::time_duration< T, rep_type >::minutes(), boost::date_time::time_duration< T, rep_type >::seconds(), and boost::local_time::custom_time_zone_base< CharT >::std_zone_abbrev().