All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Static Public Member Functions
asio::time_traits< boost::posix_time::ptime > Struct Template Reference

Time traits specialised for posix_time. More...

#include <time_traits.hpp>

List of all members.

Public Types

typedef
boost::posix_time::time_duration 
duration_type
 The duration type.
typedef boost::posix_time::ptime time_type
 The time type.

Static Public Member Functions

static time_type add (const time_type &t, const duration_type &d)
 Add a duration to a time.
static bool less_than (const time_type &t1, const time_type &t2)
 Test whether one time is less than another.
static time_type now ()
 Get the current time.
static duration_type subtract (const time_type &t1, const time_type &t2)
 Subtract one time from another.
static
boost::posix_time::time_duration 
to_posix_duration (const duration_type &d)
 Convert to POSIX duration type.

Detailed Description

template<>
struct asio::time_traits< boost::posix_time::ptime >

Time traits specialised for posix_time.

Definition at line 34 of file time_traits.hpp.


Member Typedef Documentation

typedef boost::posix_time::time_duration asio::time_traits< boost::posix_time::ptime >::duration_type

The duration type.

Definition at line 40 of file time_traits.hpp.

typedef boost::posix_time::ptime asio::time_traits< boost::posix_time::ptime >::time_type

The time type.

Definition at line 37 of file time_traits.hpp.


Member Function Documentation

static time_type asio::time_traits< boost::posix_time::ptime >::add ( const time_type t,
const duration_type d 
) [inline, static]

Add a duration to a time.

Definition at line 49 of file time_traits.hpp.

static bool asio::time_traits< boost::posix_time::ptime >::less_than ( const time_type t1,
const time_type t2 
) [inline, static]

Test whether one time is less than another.

Definition at line 61 of file time_traits.hpp.

static time_type asio::time_traits< boost::posix_time::ptime >::now ( ) [inline, static]

Get the current time.

Definition at line 43 of file time_traits.hpp.

static duration_type asio::time_traits< boost::posix_time::ptime >::subtract ( const time_type t1,
const time_type t2 
) [inline, static]

Subtract one time from another.

Definition at line 55 of file time_traits.hpp.

static boost::posix_time::time_duration asio::time_traits< boost::posix_time::ptime >::to_posix_duration ( const duration_type d) [inline, static]

Convert to POSIX duration type.

Definition at line 67 of file time_traits.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41