Exemplo n.º 1
0
 duration_type get_offset(const date_type& d) const 
 {
   // why is 'd' a parameter???
   // fix compiler warnings
   d.year();
   return duration_type(f_);
 }
Exemplo n.º 2
0
 duration_type get_offset(const date_type& d) const 
 {
   // why is 'd' a parameter???
   // fix compiler warnings
   d.year();
   return duration_type(f_*calendar_type::days_in_week());
 }
Exemplo n.º 3
0
      /*! 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);
      
      }
Exemplo n.º 4
0
 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)));
 }
Exemplo n.º 5
0
 duration_type get_neg_offset(const date_type& d) const 
 {
   // fix compiler warnings
   d.year();
   return duration_type(-f_);
 }
Exemplo n.º 6
0
 duration_type get_neg_offset(const date_type& d) const 
 {
   // fix compiler warnings
   d.year();
   return duration_type(-f_*calendar_type::days_in_week());
 }