当前位置: 首页>>代码示例>>C++>>正文


C++ date_type::year方法代码示例

本文整理汇总了C++中date_type::year方法的典型用法代码示例。如果您正苦于以下问题:C++ date_type::year方法的具体用法?C++ date_type::year怎么用?C++ date_type::year使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在date_type的用法示例。


在下文中一共展示了date_type::year方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: get_offset

 duration_type get_offset(const date_type& d) const 
 {
   // why is 'd' a parameter???
   // fix compiler warnings
   d.year();
   return duration_type(f_);
 }
开发者ID:TheRyaz,项目名称:c_reading,代码行数:7,代码来源:adjust_functors.hpp

示例2: local_is_dst

      /*! Determines if the time is really in DST or not.  Also checks for 
       *  invalid and ambiguous.
       *  @retval The time is either ambiguous, invalid, in dst, or not in dst
       */
      static time_is_dst_result local_is_dst(const date_type& d,
                                             const time_duration_type& td) 
      {

        year_type y = d.year();
        date_type dst_start = local_dst_start_day(y);
        date_type dst_end   = local_dst_end_day(y);
        return dstcalc::local_is_dst(d,td,
                                     dst_start,dst_start_offset_minutes,
                                     dst_end, dst_start_offset_minutes, 
                                     dst_length_minutes);
      
      }
开发者ID:gijs,项目名称:PDAL,代码行数:17,代码来源:dst_rules.hpp

示例3: is_dst_boundary_day

 static bool is_dst_boundary_day(date_type d)
 {
   year_type y = d.year();
   return ((d == local_dst_start_day(y)) ||
           (d == local_dst_end_day(y)));
 }
开发者ID:gijs,项目名称:PDAL,代码行数:6,代码来源:dst_rules.hpp

示例4: get_neg_offset

 duration_type get_neg_offset(const date_type& d) const 
 {
   // fix compiler warnings
   d.year();
   return duration_type(-f_);
 }
开发者ID:TheRyaz,项目名称:c_reading,代码行数:6,代码来源:adjust_functors.hpp


注:本文中的date_type::year方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。