|
Jpp
16.0.3
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.
Definition at line 39 of file Jeep/JDate.hh.
|
inline |
|
inline |
|
inline |
Constructor.
| date | date |
Definition at line 79 of file Jeep/JDate.hh.
|
inlinestatic |
Minimal date.
Definition at line 87 of file Jeep/JDate.hh.
|
inlinestatic |
Maximal date.
Definition at line 88 of file Jeep/JDate.hh.
|
inline |
Less-than method.
| date | date |
Definition at line 97 of file Jeep/JDate.hh.
|
friend |
Read date from input stream.
| in | input stream |
| object | date |
Definition at line 120 of file Jeep/JDate.hh.
|
friend |
Write date to output stream.
| out | output stream |
| object | date |
Definition at line 146 of file Jeep/JDate.hh.
|
static |
Separation character.
Definition at line 45 of file Jeep/JDate.hh.
| int JEEP::JDate< JSeparator_t >::year |
year
Definition at line 154 of file Jeep/JDate.hh.
| int JEEP::JDate< JSeparator_t >::month |
month
Definition at line 155 of file Jeep/JDate.hh.
| int JEEP::JDate< JSeparator_t >::day |
day
Definition at line 156 of file Jeep/JDate.hh.
1.8.5