| Home | Libraries | People | FAQ | More

## Class template day_clock

boost::date_time::day_clock — A clock providing day level services based on C time_t capabilities.

## Synopsis

    template<typename date_type>
    class day_clock {
    public:
      // types
      typedef date_type::ymd_type ymd_type;

      // public static functions
      static date_type local_day() ;
      static date_type::ymd_type local_day_ymd() ;
      static date_type::ymd_type universal_day_ymd() ;
      static date_type universal_day() ;

      // private static functions
      static ::std::tm * get_local_time(std::tm &) ;
      static ::std::tm * get_universal_time(std::tm &) ;
    };

## Description

This clock uses Posix interfaces as its implementation and hence uses the timezone settings of the operating system. Incorrect user settings will result in incorrect results for the calls to local_day.

### `day_clock` public static functions

1.     static date_type local_day() ;

2.     static date_type::ymd_type local_day_ymd() ;

3.     static date_type::ymd_type universal_day_ymd() ;

4.     static date_type universal_day() ;

### `day_clock` private static functions

1.     static ::std::tm * get_local_time(std::tm & result) ;

2.     static ::std::tm * get_universal_time(std::tm & result) ;