Time type with no timezone or other adjustments. More...
#include <ptime.hpp>
Public Types | |
typedef posix_time_system | time_system_type |
typedef time_system_type::time_rep_type | time_rep_type |
typedef time_system_type::time_duration_type | time_duration_type |
typedef ptime | time_type |
typedef posix_time_system::date_type | date_type |
typedef posix_time_system::date_duration_type | date_duration_type |
Public Member Functions | |
ptime (gregorian::date d, time_duration_type td) | |
Construct with date and offset in day. More... | |
ptime (gregorian::date d) | |
Construct a time at start of the given day (midnight) More... | |
ptime (const time_rep_type &rhs) | |
Copy from time_rep. More... | |
ptime (const special_values sv) | |
Construct from special value. More... | |
ptime () | |
date_type | date () const |
time_duration_type | time_of_day () const |
std::string | zone_name (bool=false) const |
Optional bool parameter will return time zone as an offset (ie "+07:00"). More... | |
std::string | zone_abbrev (bool=false) const |
Optional bool parameter will return time zone as an offset (ie "+07:00"). More... | |
std::string | zone_as_posix_string () const |
An empty string is returned for classes that do not use a time_zone. More... | |
bool | is_not_a_date_time () const |
check to see if date is not a value More... | |
bool | is_infinity () const |
check to see if date is one of the infinity values More... | |
bool | is_pos_infinity () const |
check to see if date is greater than all possible dates More... | |
bool | is_neg_infinity () const |
check to see if date is greater than all possible dates More... | |
bool | is_special () const |
check to see if time is a special value More... | |
bool | operator== (const time_type &rhs) const |
Equality operator – others generated by boost::equality_comparable. More... | |
bool | operator< (const time_type &rhs) const |
Equality operator – others generated by boost::less_than_comparable. More... | |
time_duration_type | operator- (const time_type &rhs) const |
difference between two times More... | |
time_type | operator- (const date_duration_type &dd) const |
subtract date durations More... | |
time_type | operator- (const time_duration_type &rhs) const |
subtract time durations More... | |
time_type | operator+ (const date_duration_type &dd) const |
add date durations More... | |
time_type | operator+ (const time_duration_type &td) const |
add time durations More... | |
time_type | operator+= (const date_duration_type &dd) |
time_type | operator+= (const time_duration_type &td) |
time_type | operator-= (const date_duration_type &dd) |
time_type | operator-= (const time_duration_type &td) |
Protected Attributes | |
time_rep_type | time_ |
Time type with no timezone or other adjustments.
|
inherited |
|
inherited |
|
inline |
Construct with date and offset in day.
|
inlineexplicit |
Construct a time at start of the given day (midnight)
|
inline |
Copy from time_rep.
|
inline |
Construct from special value.
|
inline |
|
inlineinherited |
|
inlineinherited |
check to see if date is one of the infinity values
|
inlineinherited |
check to see if date is greater than all possible dates
|
inlineinherited |
check to see if date is not a value
|
inlineinherited |
check to see if date is greater than all possible dates
|
inlineinherited |
check to see if time is a special value
|
inlineinherited |
add date durations
|
inlineinherited |
add time durations
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
difference between two times
|
inlineinherited |
subtract date durations
|
inlineinherited |
subtract time durations
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equality operator – others generated by boost::less_than_comparable.
|
inlineinherited |
Equality operator – others generated by boost::equality_comparable.
|
inlineinherited |
|
inlineinherited |
Optional bool parameter will return time zone as an offset (ie "+07:00").
Empty string is returned for classes that do not use a time_zone
|
inlineinherited |
An empty string is returned for classes that do not use a time_zone.
|
inlineinherited |
Optional bool parameter will return time zone as an offset (ie "+07:00").
Empty string is returned for classes that do not use a time_zone
|
protectedinherited |