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

◆ wid2isamplerest()

libtime::TRelativeTime sff::wid2isamplerest ( const WID2 wid2,
const libtime::TAbsoluteTime &  idate 
)

return time interval between idate and sample sample next to idate

return residual between idate and sample next to it

Definition at line 63 of file wid2isample.cc.

References sff::WID2::date, and sff::WID2::dt.

65  {
66  libtime::TRelativeTime dt=libtime::double2time(wid2.dt);
67  libtime::TRelativeTime retval=(idate-wid2.date)%dt;
68  return(retval);
69  }