Class or struct representing a positive or negative delta of a number of nanoseconds, seconds, minutes, hours, days, or weeks.
More...
|
| int_delta | nanoseconds () const |
| | Get the number of nanoseconds represented by a TimeDelta. More...
|
| |
| int_delta | microseconds () const |
| | Get the number of microseconds represented by a TimeDelta. More...
|
| |
| double | microseconds_decimal () const |
| | Get the number of microseconds represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| int_delta | milliseconds () const |
| | Get the number of milliseconds represented by a TimeDelta. More...
|
| |
| double | milliseconds_decimal () const |
| | Get the number of milliseconds represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| int_delta | seconds () const |
| | Get the number of seconds represented by a TimeDelta. More...
|
| |
| double | seconds_decimal () const |
| | Get the number of seconds represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| int_delta | minutes () const |
| | Get the number of minutes represented by a TimeDelta. More...
|
| |
| double | minutes_decimal () const |
| | Get the number of minutes represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| int_delta | hours () const |
| | Get the number of hours represented by a TimeDelta. More...
|
| |
| double | hours_decimal () const |
| | Get the number of hours represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| int_delta | days () const |
| | Get the number of days represented by a TimeDelta. More...
|
| |
| double | days_decimal () const |
| | Get the number of days represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| int_delta | weeks () const |
| | Get the number of weeks represented by a TimeDelta. More...
|
| |
| double | weeks_decimal () const |
| | Get the number of weeks represented by a TimeDelta, with a fractional part if necessary. More...
|
| |
| DayDelta | to_DayDelta_truncated () const |
| | Convert a TimeDelta into a DayDelta, rounding towards zero if the TimeDelta does not represent an exact number of days. More...
|
| |
| DayDelta | to_DayDelta_rounded () const |
| | Convert a TimeDelta into a DayDelta, rounding to the nearest day if the TimeDelta does not represent an exact number of days. More...
|
| |
| DayDelta | to_DayDelta_abs_ceil () const |
| | Convert a TimeDelta into a DayDelta, rounding away from zero if the TimeDelta does not represent an exact number of days. More...
|
| |
| bool | is_negative () const |
| | Determine whether a TimeDelta is negative. More...
|
| |
| void | negate () |
| | Negate a TimeDelta, making it negative if it was positive or positive if it was negative. More...
|
| |
| TimeDelta | operator- () const |
| | Return the negated version of this TimeDelta. More...
|
| |
| TimeDelta & | operator*= (const long &scale_factor) |
| | Scale a TimeDelta by multiplying it by an integer scale factor. More...
|
| |
| TimeDelta & | operator*= (const double &scale_factor) |
| | Scale a TimeDelta by multiplying it by a floating point scale factor. More...
|
| |
| TimeDelta & | operator/= (const long &scale_factor) |
| | Scale a TimeDelta by dividing it by an integer scale factor. More...
|
| |
| TimeDelta & | operator/= (const double &scale_factor) |
| | Scale a TimeDelta by dividing it by a floating point scale factor. More...
|
| |
| TimeDelta & | operator+= (const TimeDelta &other) |
| | Add another TimeDelta to a TimeDelta. More...
|
| |
| TimeDelta & | operator+= (const DayDelta &other) |
| | Add a DayDelta to a TimeDelta. More...
|
| |
| TimeDelta & | operator-= (const TimeDelta &other) |
| | Subtract another TimeDelta from a TimeDelta. More...
|
| |
| TimeDelta & | operator-= (const DayDelta &other) |
| | Subtract a DayDelta from a TimeDelta. More...
|
| |
|
| const TimeDelta | operator* (const TimeDelta &delta, const long &scale_factor) |
| |
| const TimeDelta | operator* (const TimeDelta &delta, const double &scale_factor) |
| |
| const TimeDelta | operator/ (const TimeDelta &delta, const long &scale_factor) |
| |
| const TimeDelta | operator/ (const TimeDelta &delta, const double &scale_factor) |
| |
| const TimeDelta | operator+ (const TimeDelta &lhs, const TimeDelta &rhs) |
| |
| const TimeDelta | operator+ (const TimeDelta &lhs, const DayDelta &rhs) |
| |
| const TimeDelta | operator+ (const DayDelta &lhs, const TimeDelta &rhs) |
| |
| const TimeDelta | operator- (const TimeDelta &lhs, const TimeDelta &rhs) |
| |
| const TimeDelta | operator- (const TimeDelta &lhs, const DayDelta &rhs) |
| |
| const TimeDelta | operator- (const DayDelta &lhs, const TimeDelta &rhs) |
| |
| bool | operator== (const TimeDelta &lhs, const TimeDelta &rhs) |
| | Determine whether two TimeDelta instances are equal (lhs == rhs). More...
|
| |
| bool | operator== (const TimeDelta &lhs, const DayDelta &rhs) |
| | Determine whether a TimeDelta is equal to a DayDelta (lhs == rhs). More...
|
| |
| bool | operator!= (const TimeDelta &lhs, const TimeDelta &rhs) |
| |
| bool | operator!= (const TimeDelta &lhs, const DayDelta &rhs) |
| |
| bool | operator< (const TimeDelta &lhs, const TimeDelta &rhs) |
| | Determine whether a TimeDelta is less than another TimeDelta (lhs < rhs). More...
|
| |
| bool | operator< (const TimeDelta &lhs, const DayDelta &rhs) |
| | Determine whether a TimeDelta is less than a DayDelta (lhs < rhs). More...
|
| |
| bool | operator<= (const TimeDelta &lhs, const TimeDelta &rhs) |
| | Determine whether a TimeDelta is less than or equal to another TimeDelta (lhs <= rhs). More...
|
| |
| bool | operator<= (const TimeDelta &lhs, const DayDelta &rhs) |
| | Determine whether a TimeDelta is less than or equal to a DayDelta (lhs <= rhs). More...
|
| |
| bool | operator> (const TimeDelta &lhs, const TimeDelta &rhs) |
| | Determine whether a TimeDelta is greater than another TimeDelta (lhs > rhs). More...
|
| |
| bool | operator> (const TimeDelta &lhs, const DayDelta &rhs) |
| | Determine whether a TimeDelta is greater than a DayDelta (lhs > rhs). More...
|
| |
| bool | operator>= (const TimeDelta &lhs, const TimeDelta &rhs) |
| | Determine whether a TimeDelta is greater than or equal to another TimeDelta (lhs >= rhs). More...
|
| |
| bool | operator>= (const TimeDelta &lhs, const DayDelta &rhs) |
| | Determine whether a TimeDelta is greater than or equal to a DayDelta (lhs >= rhs). More...
|
| |
Class or struct representing a positive or negative delta of a number of nanoseconds, seconds, minutes, hours, days, or weeks.