![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <module/DateTime.hpp>

Public Member Functions | |
| DateTime (const time_t t) | |
| time_t Constructor. | |
| DateTime () | |
| Default Constructor. | |
| std::string | getString () const |
| Returns the time as a string. | |
| time_t | getTime () const |
| Returns the time as time_t. | |
| bool | isEmpty () const |
| Check if the DateTime object is empty. | |
| bool | operator!= (const DateTime b) const |
| Inequality operator. | |
| bool | operator< (const DateTime b) const |
| Less than operator. | |
| bool | operator<= (const DateTime b) const |
| Less or equal operator. | |
| bool | operator== (const DateTime b) const |
| Equality operator. | |
| bool | operator> (const DateTime b) const |
| Greater than operator. | |
| bool | operator>= (const DateTime b) const |
| Greater or equal operator. | |
Private Attributes | |
| bool | empty |
| True if no time is stored. | |
| time_t | time |
| Internal representation of time. | |
Definition at line 38 of file DateTime.hpp.
| DateTime::DateTime | ( | ) |
This constructor creates an empty DateTime.
Definition at line 44 of file DateTime.cpp.
| DateTime::DateTime | ( | const time_t | t | ) |
This constructor creates a DateTime instance initialized by a time_t. time_t is the standard C type for times. It contains the seconds elapsed since 1970-01-01 00:00:00.
Definition at line 50 of file DateTime.cpp.
| string DateTime::getString | ( | ) | const |
| time_t DateTime::getTime | ( | ) | const |
| bool DateTime::isEmpty | ( | ) | const |
Definition at line 63 of file DateTime.cpp.
Definition at line 73 of file DateTime.cpp.
Definition at line 83 of file DateTime.cpp.
Definition at line 58 of file DateTime.cpp.
Definition at line 68 of file DateTime.cpp.
Definition at line 78 of file DateTime.cpp.
bool wns::module::DateTime::empty [private] |
Definition at line 108 of file DateTime.hpp.
time_t wns::module::DateTime::time [private] |
Definition at line 103 of file DateTime.hpp.
1.5.5