1 #ifndef __JDB_JDATE_T__
2 #define __JDB_JDATE_T__
34 public JMultiComparable<JDateAndTime_t, JTYPELIST<JDate_t, JTime_t>::typelist>
58 in >>
static_cast<JDate_t&
>(object);
61 in >>
static_cast<JTime_t&
>(object);
77 out << static_cast<const JDate_t&>(
object);
79 out << static_cast<const JTime_t&>(
object);
113 while (isspace(in.peek())) { in.ignore(); }
117 in >>
object.month >>
object.day >>
object.year;
119 if (in.get() == (
int)
' ') {
123 in >>
object.hour >>
object.minute >>
object.second;
125 if (in.get() == (
int)
' ') {
131 if (key ==
"am" || key ==
"AM") {}
132 if (key ==
"pm" || key ==
"PM") {
object.hour += 12; }
Auxiliary class to specify white space character(s) in currect locale.
Auxiliary classes and methods for database I/O.
JEEP::JTime<':'> JTime_t
type defintion of time according database format
JEEP::JDate<'/'> JDate_t
type defintion of date according database format
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JDateAndTimeUS_t()
Default constructor;.
friend std::istream & operator>>(std::istream &in, JDateAndTimeUS_t &object)
Read date and time from input stream.
friend std::ostream & operator<<(std::ostream &out, const JDateAndTime_t &object)
Write date and time to output stream.
friend std::istream & operator>>(std::istream &in, JDateAndTime_t &object)
Read date and time from input stream.
static const char SEPARATOR
Separation character.
JDateAndTime_t()
Default constructor;.
Auxiliary class for simple date.
static const char SEPARATOR
Separation character.
Auxiliary class for simple time.
static const char SEPARATOR
Separation character.
Template definition of auxiliary base class for composite data structures composed of base classes wi...
Auxiliary class for recursive type list generation.