#include <ptime.h>
Public Member Functions | |
| TimeSpan (unsigned int days=0, unsigned int hours=0, unsigned int minutes=0, unsigned int seconds=0, unsigned int usecs=0) throw (OverflowError) | |
| ~TimeSpan () throw () | |
| void | setDays (unsigned int days) throw (OverflowError) |
| unsigned int | days () const throw () |
| void | setHours (unsigned int hours) throw (OverflowError) |
| unsigned int | hours () const throw () |
| void | setMinutes (unsigned int minutes) throw (OverflowError) |
| unsigned int | minutes () const throw () |
| void | setSeconds (unsigned int seconds) throw (OverflowError) |
| unsigned int | seconds () const throw () |
| void | setUsecs (unsigned int usec) throw (OverflowError) |
| unsigned int | usecs () const throw () |
| void | normalize () throw (OverflowError) |
| Normalize the timespan. | |
| bool | operator> (const TimeSpan &sp) const throw () |
| bool | operator< (const TimeSpan &sp) const throw () |
| bool | operator>= (const TimeSpan &sp) const throw () |
| bool | operator<= (const TimeSpan &sp) const throw () |
| bool | operator== (const TimeSpan &sp) const throw () |
| bool | operator!= (const TimeSpan &sp) const throw () |
| TimeSpan & | operator+= (const TimeSpan &sp) throw (OverflowError) |
| TimeSpan & | operator-= (const TimeSpan &sp) throw () |
Friends | |
| PCORE_EXPORT friend TimeSpan | operator+ (const TimeSpan &sp1, const TimeSpan &sp2) throw (OverflowError) |
| PCORE_EXPORT friend TimeSpan | operator- (const TimeSpan &sp1, const TimeSpan &sp2) throw () |
This class is used to add or subtract a timespan from a Date, Time or DateTime object.
Definition at line 37 of file ptime.h.
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Normalize the timespan.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
1.3.3