Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class custom_time_zone

boost::local_time::custom_time_zone — A real time zone.

Synopsis

class custom_time_zone : public boost::local_time::time_zone {
public:
  // types
  typedef boost::posix_time::time_duration time_duration_type;
  typedef time_zone                        base_type;         
  typedef base_type::string_type           string_type;       
  typedef base_type::stringstream_type     stringstream_type; 

  // construct/copy/destruct
  custom_time_zone(const time_zone_names &, const time_duration_type &, 
                   const dst_adjustment_offsets &, 
                   boost::shared_ptr< dst_calc_rule >);
  ~custom_time_zone();

  // public member functions
  virtual std::string dst_zone_abbrev() const;
  virtual std::string std_zone_abbrev() const;
  virtual std::string dst_zone_name() const;
  virtual std::string std_zone_name() const;
  virtual bool has_dst() const;
  virtual posix_time::ptime dst_local_start_time(gregorian::greg_year) const;
  virtual posix_time::ptime dst_local_end_time(gregorian::greg_year) const;
  virtual time_duration_type base_utc_offset() const;
  virtual time_duration_type dst_offset() const;
  virtual string_type to_posix_string() const;
};

Description

custom_time_zone construct/copy/destruct

  1. custom_time_zone(const time_zone_names & zone_names, 
                     const time_duration_type & base_utc_offset, 
                     const dst_adjustment_offsets & dst_offset, 
                     boost::shared_ptr< dst_calc_rule > calc_rule);
  2. ~custom_time_zone();

custom_time_zone public member functions

  1. virtual std::string dst_zone_abbrev() const;
  2. virtual std::string std_zone_abbrev() const;
  3. virtual std::string dst_zone_name() const;
  4. virtual std::string std_zone_name() const;
  5. virtual bool has_dst() const;
  6. virtual posix_time::ptime dst_local_start_time(gregorian::greg_year y) const;
  7. virtual posix_time::ptime dst_local_end_time(gregorian::greg_year y) const;
  8. virtual time_duration_type base_utc_offset() const;
  9. virtual time_duration_type dst_offset() const;
  10. virtual string_type to_posix_string() const;
Copyright © 2001-2005 CrystalClear Software, Inc

PrevUpHomeNext