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

Class template us_dst_rules

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 us_dst_rules

boost::date_time::us_dst_rules — Depricated: Class to calculate dst boundaries for US time zones.

Synopsis

// In header: <boost/date_time/dst_rules.hpp>
template<typename date_type_, typename time_duration_type_, 
         unsigned int dst_start_offset_minutes = 120, 
         short dst_length_minutes = 60> 
class us_dst_rules {
public:
  // types
  typedef time_duration_type_                             time_duration_type;
  typedef date_type_                                      date_type;         
  typedef date_type::year_type                            year_type;         
  typedef date_type::calendar_type                        calendar_type;     
  typedef date_time::last_kday_of_month< date_type >      lkday;             
  typedef date_time::first_kday_of_month< date_type >     fkday;             
  typedef date_time::nth_kday_of_month< date_type >       nkday;             
  typedef dst_calculator< date_type, time_duration_type > dstcalc;           
  // public static functions
  static time_is_dst_result 
  local_is_dst(const date_type &, const time_duration_type &);
  static bool is_dst_boundary_day(date_type);
  static date_type local_dst_start_day(year_type);
  static date_type local_dst_end_day(year_type);
  static time_duration_type dst_offset();
};

Description

us_dst_rules public static functions

  1. static time_is_dst_resultlocal_is_dst(const date_type , const const time_duration_type & td;
    Вычисляет, является ли данное местное время dst или нет. 30 Определяет, действительно ли время в DST или нет. Также проверки на недействительные и неоднозначные.

  2. static boolis_dst_boundary_day(date_typed;
  3. static date_typelocal_dst_start_day(year_type year;
  4. static date_typelocal_dst_end_day(year_type year;
  5. static time_duration_type dst_offset;

PrevUpHomeNext

Статья Class template us_dst_rules раздела 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 02:45:22/0.0034480094909668/0