Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::posix_time::minutes Class Reference

Allows expression of durations as a minute count. More...

#include <posix_time_duration.hpp>

Inheritance diagram for boost::posix_time::minutes:
Collaboration diagram for boost::posix_time::minutes:

Public Types

typedef time_res_traits rep_type
 
typedef time_res_traits::day_type day_type
 
typedef time_res_traits::hour_type hour_type
 
typedef time_res_traits::min_type min_type
 
typedef time_res_traits::sec_type sec_type
 
typedef
time_res_traits::fractional_seconds_type 
fractional_seconds_type
 
typedef time_res_traits::tick_type tick_type
 
typedef time_res_traits::impl_type impl_type
 
typedef time_duration duration_type
 
typedef time_res_traits traits_type
 

Public Member Functions

 minutes (long m)
 
hour_type hours () const
 Returns number of hours in the duration. More...
 
min_type minutes () const
 Returns normalized number of minutes. More...
 
sec_type seconds () const
 Returns normalized number of seconds (0..60) More...
 
sec_type total_seconds () const
 Returns total number of seconds truncating any fractional seconds. More...
 
tick_type total_milliseconds () const
 Returns total number of milliseconds truncating any fractional seconds. More...
 
tick_type total_nanoseconds () const
 Returns total number of nanoseconds truncating any sub millisecond values. More...
 
tick_type total_microseconds () const
 Returns total number of microseconds truncating any sub microsecond values. More...
 
fractional_seconds_type fractional_seconds () const
 Returns count of fractional seconds at given resolution. More...
 
duration_type invert_sign () const
 
bool is_negative () const
 
bool operator< (const time_duration &rhs) const
 
bool operator== (const time_duration &rhs) const
 
duration_type operator- () const
 unary- Allows for time_duration td = -td1 More...
 
duration_type operator- (const duration_type &d) const
 
duration_type operator+ (const duration_type &d) const
 
duration_type operator/ (int divisor) const
 
duration_type operator-= (const duration_type &d)
 
duration_type operator+= (const duration_type &d)
 
duration_type operator/= (int divisor)
 Division operations on a duration with an integer. More...
 
duration_type operator* (int rhs) const
 Multiplication operations an a duration with an integer. More...
 
duration_type operator*= (int divisor)
 
tick_type ticks () const
 
bool is_special () const
 Is ticks_ a special value? More...
 
bool is_pos_infinity () const
 Is duration pos-infinity. More...
 
bool is_neg_infinity () const
 Is duration neg-infinity. More...
 
bool is_not_a_date_time () const
 Is duration not-a-date-time. More...
 
impl_type get_rep () const
 Used for special_values output. More...
 

Static Public Member Functions

static duration_type unit ()
 Returns smallest representable duration. More...
 
static tick_type ticks_per_second ()
 Return the number of ticks in a second. More...
 
static time_resolutions resolution ()
 Provide the resolution of this duration type. More...
 
static unsigned short num_fractional_digits ()
 Returns number of possible digits in fractional seconds. More...
 

Protected Attributes

impl_type ticks_
 

Detailed Description

Allows expression of durations as a minute count.

Member Typedef Documentation

Constructor & Destructor Documentation

boost::posix_time::minutes::minutes ( long  m)
inlineexplicit

Member Function Documentation

Used for special_values output.

References boost::date_time::time_duration< T, rep_type >::ticks_.

bool boost::date_time::time_duration< time_duration , time_res_traits >::is_neg_infinity ( ) const
inlineinherited

Is duration neg-infinity.

References boost::date_time::time_duration< T, rep_type >::ticks_.

bool boost::date_time::time_duration< time_duration , time_res_traits >::is_not_a_date_time ( ) const
inlineinherited

Is duration not-a-date-time.

References boost::date_time::time_duration< T, rep_type >::ticks_.

bool boost::date_time::time_duration< time_duration , time_res_traits >::is_pos_infinity ( ) const
inlineinherited

Is duration pos-infinity.

References boost::date_time::time_duration< T, rep_type >::ticks_.

bool boost::date_time::time_duration< time_duration , time_res_traits >::is_special ( ) const
inlineinherited

Is ticks_ a special value?

References boost::date_time::time_duration< T, rep_type >::ticks_.

static unsigned short boost::date_time::time_duration< time_duration , time_res_traits >::num_fractional_digits ( )
inlinestaticinherited

Returns number of possible digits in fractional seconds.

Referenced by boost::posix_time::to_iso_string_type(), and boost::posix_time::to_simple_string_type().

duration_type boost::date_time::time_duration< time_duration , time_res_traits >::operator* ( int  rhs) const
inlineinherited

Multiplication operations an a duration with an integer.

References boost::date_time::time_duration< T, rep_type >::ticks_.

unary- Allows for time_duration td = -td1

References boost::date_time::time_duration< T, rep_type >::ticks_.

duration_type boost::date_time::time_duration< time_duration , time_res_traits >::operator/= ( int  divisor)
inlineinherited

Division operations on a duration with an integer.

References boost::date_time::time_duration< T, rep_type >::ticks_.

bool boost::date_time::time_duration< time_duration , time_res_traits >::operator< ( const time_duration< time_duration, time_res_traits > &  rhs) const
inlineinherited
bool boost::date_time::time_duration< time_duration , time_res_traits >::operator== ( const time_duration< time_duration, time_res_traits > &  rhs) const
inlineinherited
static time_resolutions boost::date_time::time_duration< time_duration , time_res_traits >::resolution ( )
inlinestaticinherited

Provide the resolution of this duration type.

static tick_type boost::date_time::time_duration< time_duration , time_res_traits >::ticks_per_second ( )
inlinestaticinherited

Return the number of ticks in a second.

tick_type boost::date_time::time_duration< time_duration , time_res_traits >::total_microseconds ( ) const
inlineinherited

Returns total number of microseconds truncating any sub microsecond values.

References boost::date_time::time_duration< T, rep_type >::ticks(), and boost::date_time::time_duration< T, rep_type >::ticks_per_second().

tick_type boost::date_time::time_duration< time_duration , time_res_traits >::total_milliseconds ( ) const
inlineinherited

Returns total number of milliseconds truncating any fractional seconds.

References boost::date_time::time_duration< T, rep_type >::ticks(), and boost::date_time::time_duration< T, rep_type >::ticks_per_second().

tick_type boost::date_time::time_duration< time_duration , time_res_traits >::total_nanoseconds ( ) const
inlineinherited

Returns total number of nanoseconds truncating any sub millisecond values.

References boost::date_time::time_duration< T, rep_type >::ticks(), and boost::date_time::time_duration< T, rep_type >::ticks_per_second().

sec_type boost::date_time::time_duration< time_duration , time_res_traits >::total_seconds ( ) const
inlineinherited

Returns total number of seconds truncating any fractional seconds.

References boost::date_time::time_duration< T, rep_type >::ticks(), and boost::date_time::time_duration< T, rep_type >::ticks_per_second().

static duration_type boost::date_time::time_duration< time_duration , time_res_traits >::unit ( )
inlinestaticinherited

Returns smallest representable duration.

Member Data Documentation


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