Additional duration type that represents a number of n*7 days. More...
#include <date_duration_types.hpp>
Public Types | |
typedef duration_config::int_type | duration_rep_type |
typedef duration_config::impl_type | duration_rep |
Public Member Functions | |
weeks_duration (typename duration_config::impl_type w) | |
weeks_duration (special_values sv) | |
duration_rep | get_rep () const |
returns days_ as it's instantiated type - used for streaming More... | |
bool | is_special () const |
duration_rep_type | days () const |
returns days as value, not object. More... | |
bool | operator== (const date_duration &rhs) const |
Equality. More... | |
bool | operator< (const date_duration &rhs) const |
Less. More... | |
date_duration & | operator-= (const date_duration &rhs) |
Subtract another duration – result is signed. More... | |
date_duration & | operator+= (const date_duration &rhs) |
Add a duration – result is signed. More... | |
date_duration | operator- () const |
unary- Allows for dd = -date_duration(2); -> dd == -2 More... | |
date_duration & | operator/= (int divisor) |
Division operations on a duration with an integer. More... | |
bool | is_negative () const |
return sign information More... | |
Static Public Member Functions | |
static date_duration | unit () |
Returns the smallest duration – used by to calculate 'end'. More... | |
Additional duration type that represents a number of n*7 days.
|
inherited |
|
inherited |
|
inline |
|
inline |
|
inlineinherited |
returns days as value, not object.
|
inlineinherited |
returns days_ as it's instantiated type - used for streaming
|
inlineinherited |
return sign information
|
inlineinherited |
|
inlineinherited |
Add a duration – result is signed.
|
inlineinherited |
unary- Allows for dd = -date_duration(2); -> dd == -2
|
inlineinherited |
Subtract another duration – result is signed.
|
inlineinherited |
Division operations on a duration with an integer.
|
inlineinherited |
Less.
|
inlineinherited |
Equality.
|
inlinestaticinherited |
Returns the smallest duration – used by to calculate 'end'.