CMS 3D CMS Logo

pos::PixelTimeFormatter Class Reference

#include <CalibFormats/SiPixelObjects/interface/PixelTimeFormatter.h>

List of all members.

Static Public Member Functions

static std::string getTime (void)


Detailed Description

Definition at line 16 of file PixelTimeFormatter.h.


Member Function Documentation

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     }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:50:37 2009 for CMSSW by  doxygen 1.5.4