#include #include #include "TTimeStamp.h" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * Auxiliary program to print UNIX time in human readable format. */ int main(int argc, char **argv) { using namespace std; long long int t_ms; int debug; try { JParser<> zap("Auxiliary program to print UNIX time in human readable format"); zap['T'] = make_field(t_ms); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } const TTimeStamp t0((time_t) t_ms/1000); cout << t0.AsString() << endl; }