#include <ptime.h>
Inheritance diagram for P::DateTime:

Public Types | |
| enum | currentMode_t { Local, UTC } |
| Operation mode for current(). More... | |
Public Member Functions | |
| DateTime () | |
| DateTime (const Date &d) | |
| DateTime (const Time &t) | |
| DateTime (const Date &d, const Time &t) | |
| ~DateTime () | |
| DateTime | toLocalTime () const |
| Converts the date/time to current's local timezone. | |
| DateTime | toTimeZone (const std::string &tzname) const |
| Converts the date/time to the given timezone. | |
| const std::string & | timeZone () const throw () |
| Returns the name of the timezone. | |
| DateTime & | operator+= (const TimeSpan &sp) |
| DateTime & | operator-= (const TimeSpan &sp) |
| bool | operator> (const DateTime &dt) const throw () |
| bool | operator< (const DateTime &dt) const throw () |
| bool | operator>= (const DateTime &dt) const throw () |
| bool | operator<= (const DateTime &dt) const throw () |
| bool | operator== (const DateTime &dt) const throw () |
| bool | operator!= (const DateTime &dt) const throw () |
Static Public Member Functions | |
| DateTime | current (currentMode_t mode=Local) |
| Retrieves the current system time. | |
| std::string | currentTimeZone () |
| Returns the name of the current timezone. | |
Friends | |
| PCORE_EXPORT friend std::ostream & | operator<< (std::ostream &os, const DateTime &dt) |
Definition at line 235 of file ptime.h.
|
|
Operation mode for current().
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Retrieves the current system time.
|
|
|
Returns the name of the current timezone.
|
|
|
|
|
|
Reimplemented from P::Date. |
|
|
Reimplemented from P::Date. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the name of the timezone.
|
|
|
Converts the date/time to current's local timezone. Returns the stored date/time value converted to local timezone. The function does the same as toTimeZone(currentTimeZone()). |
|
|
Converts the date/time to the given timezone.
|
|
||||||||||||
|
|
1.3.3