Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template day_clock

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

Synopsis

// In header: <boost/date_time/date_clock_device.hpp>

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

  // public static functions
   ();
   ();
   ();
   ();

  // private static functions
  :: ();
  :: ();
};

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.  ();
    Get the local day as a date type.
  2.  ();
    Get the local day as a ymd_type.
  3.  ();
    Get the current day in universal date as a ymd_type.
  4.  ();
    Get the UTC day as a date type.

day_clock private static functions

  1. :: ( result);
  2. :: ( result);

PrevUpHomeNext