|
Jpp
19.0.0
the software that should make you happy
|
Auxiliary class for simple date. More...
#include <JDate.hh>
Public Member Functions | |
| JDate () | |
| Default constructor. More... | |
| JDate (const int year, const int month, const int day) | |
| Constructor. More... | |
| JDate (const std::string &date) | |
| Constructor. More... | |
| bool | less (const JDate &date) const |
| Less-than method. More... | |
Static Public Member Functions | |
| static JDate | min () |
| Minimal date. More... | |
| static JDate | max () |
| Maximal date. More... | |
Public Attributes | |
| int | year |
| year More... | |
| int | month |
| month More... | |
| int | day |
| day More... | |
Static Public Attributes | |
| static const char | SEPARATOR = JSeparator_t |
| Separation character. More... | |
Friends | |
| std::istream & | operator>> (std::istream &in, JDate &object) |
| Read date from input stream. More... | |
| std::ostream & | operator<< (std::ostream &out, const JDate &object) |
| Write date to output stream. More... | |
Auxiliary class for simple date.
The corresponding ASCII format is yyyy<separator>mm<separator>dd,
where yyyy corresponds to the year, mm to the month and dd to the day.
The separator is defined by the template parameter.
|
inline |
|
inline |
|
inline |
Constructor.
| date | date |
Definition at line 79 of file JDate.hh.
|
inlinestatic |
|
inlinestatic |
|
inline |
|
friend |
Read date from input stream.
| in | input stream |
| object | date |
Definition at line 120 of file JDate.hh.
|
friend |
|
static |
| int JEEP::JDate< JSeparator_t >::year |
| int JEEP::JDate< JSeparator_t >::month |
| int JEEP::JDate< JSeparator_t >::day |
1.8.5