KPlato::DateTime Class Reference
#include <kptdatetime.h>
Public Member Functions | |
| DateTime (const TQDateTime &dt) | |
| DateTime (const TQDate &date, const TQTime &time) | |
| DateTime | operator+ (const Duration &duration) const |
| DateTime | operator- (const Duration &duration) const |
| Duration | operator- (const DateTime &dt) const |
| Duration | operator- (const DateTime &dt) |
| DateTime & | operator+= (const Duration &duration) |
| DateTime & | operator-= (const Duration &duration) |
Static Public Member Functions | |
| static DateTime | fromString (const TQString dts) |
Detailed Description
DateTime is a TQDateTime which knows about Duration.
Definition at line 33 of file kptdatetime.h.
Constructor & Destructor Documentation
◆ DateTime() [1/3]
| KPlato::DateTime::DateTime | ( | ) |
Definition at line 27 of file kptdatetime.cpp.
◆ DateTime() [2/3]
| KPlato::DateTime::DateTime | ( | const TQDateTime & | dt | ) |
Definition at line 30 of file kptdatetime.cpp.
◆ DateTime() [3/3]
| KPlato::DateTime::DateTime | ( | const TQDate & | date, |
| const TQTime & | time ) |
Definition at line 33 of file kptdatetime.cpp.
Member Function Documentation
◆ fromString()
|
inlinestatic |
Definition at line 57 of file kptdatetime.h.
◆ operator+()
| DateTime KPlato::DateTime::operator+ | ( | const Duration & | duration | ) | const |
Adds the duration.
- Parameters
-
duration to the datetime
Definition at line 62 of file kptdatetime.cpp.
◆ operator+=()
| DateTime & KPlato::DateTime::operator+= | ( | const Duration & | duration | ) |
Definition at line 68 of file kptdatetime.cpp.
◆ operator-() [1/3]
|
inline |
Definition at line 52 of file kptdatetime.h.
◆ operator-() [2/3]
|
inline |
Returns the absolute duration between the two datetimes.
Definition at line 51 of file kptdatetime.h.
◆ operator-() [3/3]
| DateTime KPlato::DateTime::operator- | ( | const Duration & | duration | ) | const |
Subtracts the duration.
- Parameters
-
duration from the datetime
Definition at line 73 of file kptdatetime.cpp.
◆ operator-=()
| DateTime & KPlato::DateTime::operator-= | ( | const Duration & | duration | ) |
Definition at line 79 of file kptdatetime.cpp.
The documentation for this class was generated from the following files:
