18int main(
int argc,
char* argv[])
27 JParser<> zap(
"Example program to show system time.");
33 catch(
const exception &error) {
34 FATAL(error.what() << endl);
37 cout <<
"current:" << endl;
38 cout << getDate() << endl;
39 cout << getTime() << endl;
40 cout << getDateAndTime().toString() << endl;
46 cout <<
"user:" << endl;
int main(int argc, char *argv[])
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Auxiliary class for date and time.
std::string toString() const
Get ASCII formatted date and time.
int getYear() const
year a.d.
int getDay() const
day of the month [1-31]
int getMonth() const
month of the year [1-12]