Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template custom_time_zone_base

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Library Reference

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

PrevUpHomeNext

Class template custom_time_zone_base

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

Synopsis

// In header: <boost/date_time/local_time/custom_time_zone.hpp>
template<typename CharT> 
class custom_time_zone_base :
  public date_time::time_zone_base< posix_time::ptime, CharT >
{
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;         
  // construct/copy/destruct
  custom_time_zone_base(const time_zone_names &, const time_duration_type &, 
                        const dst_adjustment_offsets &, 
                        boost::shared_ptr< dst_calc_rule >);
  ~custom_time_zone_base();
  // public member functions
  virtual string_type dst_zone_abbrev() const;
  virtual string_type std_zone_abbrev() const;
  virtual string_type dst_zone_name() const;
  virtual string_type 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_base public construct/copy/destruct

  1. custom_time_zone_basetime_zone_names , const time_duration_type ,  utc_offset,   dst_adjustment_offsets ,  dst_shift,  boost:: dst_calc_rule;4>
  2. ~custom_time_zone_base;

custom_time_zone_base public member functions

  1. virtual string_typedst_zone_abbrevconst;
  2. virtual string_typestd_zone_abbrevconst;
  3. virtual string_typedst_zone_name()const;
  4. virtual string_typestd_zone_name()const;
  5. virtual boolhas_dst()const;
    Правда, если зона использует корректировки экономии дневного света.
  6. виртуальный posix_time::ptimedst_local_start_time(gregorian::greg_year y)const;
    Местное время начала DST – НАДТ, если имеет_dst, ложно.
  7. виртуальный posix_time::ptimedst_local_end_time::gregorian:::greg_year yconst;
    Местное время окончания DST – НАДТ, если имеет_dst, ложно.
  8. virtual time_duration_typebase_utc_offset()const;
    Base offset from UTC for zone (например: -07:30:00)
  9. virtual time_duration_type dst_offset() const;
    Корректировка вперед или назад, сделанная при действии DST.
  10. virtual string_typeto_posix_string() const;
    Возвращает строку POSIX time_zone для этого объекта.

PrevUpHomeNext

Статья Class template custom_time_zone_base раздела The Boost C++ Libraries BoostBook Documentation Subset Library Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Library Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 03:49:35/0.0037040710449219/0