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

◆ set() [5/5]

void datrw::su::SUheader::set ( const libtime::TAbsoluteTime &  date)

set date

Definition at line 414 of file suheader.cc.

References datrw::su::TraceHeaderStruct::day, datrw::su::TraceHeaderStruct::hour, Mheader, datrw::su::TraceHeaderStruct::minute, datrw::su::TraceHeaderStruct::sec, and datrw::su::TraceHeaderStruct::year.

415  {
416  Mheader.year=static_cast<short>(date.year());
417  Mheader.day=static_cast<short>(date.doy());
418  Mheader.hour=static_cast<short>(date.hour());
419  Mheader.minute=static_cast<short>(date.minute());
420  Mheader.sec=static_cast<short>(date.second());
421  } // void SUheader::set(const libtime::TAbsoluteTime &date)
short sec
second of minute
short minute
minute of hour
short year
year data recorded
short hour
hour of day (24 hour clock)
TraceHeaderStruct Mheader
the actual data fields are provided for public access
Definition: suheader.h:239