SFF++ library: reading and writing SFF from C++

◆ setstamp()

void sff::STAT::setstamp ( const libtime::TAbsoluteTime &  date) const

Definition at line 203 of file sffxx.cc.

References timestamp.

Referenced by line(), and STAT().

204  {
205  char stamp[14];
206  int yeardigits, century;
207  century=int(date.year()/100);
208  yeardigits=date.year()-100*century;
209  sprintf(stamp, "%2.2d%2.2d%2.2d.%2.2d%2.2d%2.2d",
210  static_cast<int>(yeardigits), static_cast<int>(date.month()),
211  static_cast<int>(date.day()), static_cast<int>(date.hour()),
212  static_cast<int>(date.minute()), static_cast<int>(date.second()));
213  timestamp=std::string(stamp);
214  } // void STAT::setstamp(const libtime::TAbsoluteTime& date) const
std::string timestamp
Definition: sffxx.h:148
Here is the caller graph for this function: