DATRW++ library: seismic data I/O with multiple formats

◆ convert()

libtime::TAbsoluteTime datrw::mseed::convert ( const SEED::BTIME t)

convert BTIME structure to libtime structure

Definition at line 166 of file mseedread.cc.

References datrw::mseed::SEED::BTIME::doy, datrw::mseed::SEED::BTIME::hour, datrw::mseed::SEED::BTIME::min, datrw::mseed::SEED::BTIME::sec, datrw::mseed::SEED::BTIME::tmilsec, and datrw::mseed::SEED::BTIME::year.

Referenced by datrw::mseed::MiniSEEDRecord::date(), and datrw::mseed::SEED::dump().

167  {
168  int milsec=int(int(t.tmilsec)/10);
169  int micsec=100*(int(t.tmilsec)-milsec*10);
170  libtime::TAbsoluteTime retval(int(t.year), 1, 1,
171  int(t.hour), int(t.min), int(t.sec),
172  int(milsec), int(micsec));
173  retval.setdoy(int(t.doy));
174  return(retval);
175  } // libtime::TAbsoluteTime convert(const SEED::BTIME& t)
Here is the caller graph for this function: