asio 0.3.8rc3 Home | Reference | Tutorial | Examples | Design
Reference Class Hierarchy | Class Index | Member Index

asio::time_traits< boost::posix_time::ptime > Struct Template Reference

List of all members.

Detailed Description

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

Time traits specialised for posix_time.


Public Types

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

Static Public Member Functions

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


Member Typedef Documentation

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

The time type.

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

The duration type.


Member Function Documentation

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

Get the current time.

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

Add a duration to a time.

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

Subtract one time from another.

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

Test whether one time is less than another.

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

Convert to POSIX duration type.

asio 0.3.8rc3 Home | Reference | Tutorial | Examples | Design