Commit ff17abbd authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

respect mircoseconds

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2150
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent a3a4c330
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
* *
* $Id: mseedtest.cc,v 1.19 2006-07-07 09:20:44 tforb Exp $ * $Id: mseedtest.cc,v 1.20 2006-07-07 09:54:01 tforb Exp $
* \author Thomas Forbriger * \author Thomas Forbriger
* \date 15/07/2004 * \date 15/07/2004
* *
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#define MSEEDTEST_VERSION \ #define MSEEDTEST_VERSION \
"MSEEDTEST V1.4 test MiniSEED reading" "MSEEDTEST V1.4 test MiniSEED reading"
#define MSEEDTEST_CVSID \ #define MSEEDTEST_CVSID \
"$Id: mseedtest.cc,v 1.19 2006-07-07 09:20:44 tforb Exp $" "$Id: mseedtest.cc,v 1.20 2006-07-07 09:54:01 tforb Exp $"
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
...@@ -448,11 +448,14 @@ int main(int iargc, char* argv[]) ...@@ -448,11 +448,14 @@ int main(int iargc, char* argv[])
libtime::TRelativeTime dt libtime::TRelativeTime dt
=libtime::double2time(record.dt()); =libtime::double2time(record.dt());
libtime::TRelativeTime length=dt*(record.nsamples()-1); libtime::TRelativeTime length=dt*(record.nsamples()-1);
libtime::TAbsoluteTime next=record.date()+dt+length; libtime::TAbsoluteTime date=record.date();
libtime::TAbsoluteTime next=(date+dt+length);
cout << " sampling interval: " cout << " sampling interval: "
<< dt.timestring() << endl; << dt.timestring() << endl;
cout << " length of record: " cout << " length of record: "
<< length.timestring() << endl; << length.timestring() << endl;
cout << " start of this record: "
<< date.timestring() << endl;
cout << " expected start of next record: " cout << " expected start of next record: "
<< next.timestring() << endl; << next.timestring() << endl;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment