1 #ifndef __JSYSTEM__JDATE__
2 #define __JSYSTEM__JDATE__
13 namespace JPP {
using namespace JSYSTEM; }
25 static const int MAX_SIZE = 256;
26 static char buffer[MAX_SIZE];
30 strftime(buffer, MAX_SIZE,
"%x", localtime(&ts));
44 static const int MAX_SIZE = 256;
45 static char buffer[MAX_SIZE];
49 strftime(buffer, MAX_SIZE,
"%X", localtime(&ts));
100 std::string buffer = ctime(&ts);
104 return buffer.substr(0, buffer.length() - 1);
Auxililary class to get ASCII formatted date and time.
static const JDateAndTime getDateAndTime
Function object to get ASCII formatted date and time.
double getTime(const Hit &hit)
Get true time of hit.
std::string operator()() const
Get ASCII formatted date and time.
static std::string toString(const time_t &ts)
Get ASCII formatted date and time.
const char * getDate()
Get ASCII formatted date.
JDateAndTime()
Default constructor.
std::string toString() const
Get ASCII formatted date and time.