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

Class template split_timedate_system

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 split_timedate_system

boost::date_time::split_timedate_system — An unadjusted time system implementation.

Synopsis

// In header: <boost/date_time/time_system_split.hpp>
template<typename config, boost::int32_t ticks_per_second> 
class split_timedate_system {
public:
  // types
  typedef config::time_rep_type                                                                            time_rep_type;     
  typedef config::date_type                                                                                date_type;         
  typedef config::time_duration_type                                                                       time_duration_type;
  typedef config::date_duration_type                                                                       date_duration_type;
  typedef config::int_type                                                                                 int_type;          
  typedef config::resolution_traits                                                                        resolution_traits; 
  typedef date_time::wrapping_int< int_type, INT64_C(86400)*ticks_per_second >                             wrap_int_type;     
  typedef date_time::wrapping_int< split_timedate_system::int_type, split_timedate_system::ticks_per_day > wrap_int_type;     
  typedef date_time::wrapping_int< int_type, ticks_per_day >                                               wrap_int_type;     
  // private member functions
   BOOST_STATIC_CONSTANT(int_type, 
                         ticks_per_day = INT64_C(86400)*config::tick_per_second);
  // public static functions
  static time_rep_type get_time_rep(special_values);
  static time_rep_type 
  get_time_rep(const date_type &, const time_duration_type &, 
               date_time::dst_flags = not_dst);
  static date_type get_date(const time_rep_type &);
  static time_duration_type get_time_of_day(const time_rep_type &);
  static std::string zone_name(const time_rep_type &);
  static bool is_equal(const time_rep_type &, const time_rep_type &);
  static bool is_less(const time_rep_type &, const time_rep_type &);
  static time_rep_type 
  add_days(const time_rep_type &, const date_duration_type &);
  static time_rep_type 
  subtract_days(const time_rep_type &, const date_duration_type &);
  static time_rep_type 
  subtract_time_duration(const time_rep_type &, const time_duration_type &);
  static time_rep_type 
  add_time_duration(const time_rep_type &, time_duration_type);
  static time_duration_type 
  subtract_times(const time_rep_type &, const time_rep_type &);
};

Description

split_timedate_system private member functions

  1. BOOST_STATIC_CONSTANT(int_type),ticks_per_day=INT64_C(86400)*Конфигурация:tick_per_second

split_timedate_system public static functions

  1. статическийtime_rep_typeget_time_repспециальные_значенияsv;
  2. статическоевремя_rep_типget_time_repconstдата_тип&день,конствремя_продолжительность_тип&Tod,дата_время::dst_flags=не_dst
  3. статическаядата_типget_dateconstвремя_rep_тип&вал;
  4. статическийтайм_длительность_типget_time_of_dayconstтайм_rep_тип&вал;
  5. статическийstd::струназона_имяконствремя_rep_тип&];
  6. статическийбоолявляется_равнымконсттайм-реп_тип&лхс,консттайм-реп_тип&рхс;
  7. статическийboolявляется_lessconsttime_rep_type&lhs,consttime_rep_type&rhs;
  8. статическийтайм-реп_типadd_daysconstтайм-реп_тип&база,констдата_длительность_тип&dd;
  9. статическоевремя_rep_типвычитают_дниконствремя_rep_тип&основание,констдата_длительность_тип&dd;
  10. статическоевремя_rep_типвычитают_time_durationконствремя_rep_тип&основание,конствремя_duration_тип&td;
  11. статическийtime_rep_typeadd_time_durationconsttime_rep_type&база,time_duration_typetd;
  12. статическоевремя_длительность_типвычитают_времениконствремя_реп_тип&лхи,конствремя_реп_тип&рхи;

PrevUpHomeNext

Статья Class template split_timedate_system раздела 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 04:46:43/0.0039260387420654/0