| Home | Libraries | People | FAQ | More

## Class template null_dst_rules

boost::date_time::null_dst_rules —

Used for local time adjustments in places that don't use dst.

## Synopsis

    template<typename date_type_, typename time_duration_type_>
    class null_dst_rules {
    public:
      // types
      typedef time_duration_type_ time_duration_type;
      typedef date_type_          date_type;

      // public static functions
      time_is_dst_result
      local_is_dst(const date_type &, const time_duration_type &) ;
      time_is_dst_result
      utc_is_dst(const date_type &, const time_duration_type &) ;
      bool is_dst_boundary_day(date_type) ;
      time_duration_type dst_offset() ;
    };

## Description

### `null_dst_rules` public static functions

1.     time_is_dst_result
       local_is_dst(const date_type & , const time_duration_type & ) ;

   Calculates if the given local time is dst or not.

2.     time_is_dst_result
       utc_is_dst(const date_type & , const time_duration_type & ) ;

   Calculates if the given utc time is in dst.

3.     bool is_dst_boundary_day(date_type d) ;

4.     time_duration_type dst_offset() ;

| Copyright © 2001-2004 CrystalClear Software, Inc