Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::date_time::day_clock< date_type > Class Template Reference

A clock providing day level services based on C time_t capabilities. More...

#include <date_clock_device.hpp>

Public Types

typedef date_type::ymd_type ymd_type
 

Static Public Member Functions

static date_type local_day ()
 Get the local day as a date type. More...
 
static date_type::ymd_type local_day_ymd ()
 Get the local day as a ymd_type. More...
 
static date_type::ymd_type universal_day_ymd ()
 Get the current day in universal date as a ymd_type. More...
 
static date_type universal_day ()
 Get the UTC day as a date type. More...
 

Detailed Description

template<class date_type>
class boost::date_time::day_clock< date_type >

A clock providing day level services based on C time_t capabilities.

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.

Member Typedef Documentation

template<class date_type >
typedef date_type::ymd_type boost::date_time::day_clock< date_type >::ymd_type

Member Function Documentation

template<class date_type >
static date_type boost::date_time::day_clock< date_type >::local_day ( )
inlinestatic

Get the local day as a date type.

References boost::date_time::day_clock< date_type >::local_day_ymd().

template<class date_type >
static date_type::ymd_type boost::date_time::day_clock< date_type >::local_day_ymd ( )
inlinestatic

Get the local day as a ymd_type.

References boost::curr.

Referenced by boost::date_time::day_clock< date_type >::local_day().

template<class date_type >
static date_type boost::date_time::day_clock< date_type >::universal_day ( )
inlinestatic

Get the UTC day as a date type.

References boost::date_time::day_clock< date_type >::universal_day_ymd().

template<class date_type >
static date_type::ymd_type boost::date_time::day_clock< date_type >::universal_day_ymd ( )
inlinestatic

Get the current day in universal date as a ymd_type.

References boost::curr.

Referenced by boost::date_time::day_clock< date_type >::universal_day().


The documentation for this class was generated from the following file: