#include <CalibFormats/SiPixelObjects/interface/PixelTimeFormatter.h>
Static Public Member Functions | |
static std::string | getTime (void) |
Definition at line 16 of file PixelTimeFormatter.h.
static std::string pos::PixelTimeFormatter::getTime | ( | void | ) | [inline, static] |
Definition at line 19 of file PixelTimeFormatter.h.
References GenMuonPlsPt100GeV_cfg::cout, and lat::endl().
Referenced by pos::PixelNameTranslation::writeXML(), and pos::PixelDetectorConfig::writeXML().
00020 { 00021 char theDate[20] ; 00022 struct tm *thisTime; 00023 time_t aclock; 00024 std::string date ; 00025 time( &aclock ); 00026 thisTime = localtime( &aclock ); 00027 00028 sprintf(theDate, 00029 "%d-%02d-%02d %02d:%02d:%02d", thisTime->tm_year+1900, 00030 thisTime->tm_mon+1, 00031 thisTime->tm_mday, 00032 thisTime->tm_hour, 00033 thisTime->tm_min, 00034 thisTime->tm_sec ); 00035 date = theDate ; 00036 std::cout << "[PixelTimeFormatter::getTime()]\t\t\t\t Time: " << date << std::endl ; 00037 return date ; 00038 }