MSR_STARTTIME - Online Linux Manual PageSection : 3
Updated : 2015/03/02
Source : Libmseed API

NAMEmsr_starttime - Start and end time determination for MSRecord structures

SYNOPSIS#include <libmseed.h> hptime_t msr_starttime ( MSRecord *msr ); hptime_t msr_starttime_uc ( MSRecord *msr ); hptime_t msr_endtime ( MSRecord *msr );

DESCRIPTIONmsr_starttime returns the start time of the record as a high precision epoch time (see ms_time(3)). Any time correction given in the fixed section data header is applied if it has not already been applied. If Blockette 1001 is included and parsed the microseconds indicated (field 4) are also applied. NOTE: The record start time for a MSRecord structure is available directly at MSRecord.starttime. Libmseed based programs should use that start time whenever possible (msr_unpack uses msr_starttime to set MSRecord.starttime). msr_starttime_uc is a version of msr_starttime that applies no time corrections, just a basic conversion of the start time values in the fixed section data header. msr_endtime returns the time of the last sample in the record as a high precision epoch time (seed ms_time(3)). This is *not* the time "covered" by the last sample, but the actual sample time. This function calculates the record start time with msr_starttime and then adds the time covered by the samples in the record which is calculated from the number of samples and sample rate. msr_endtime will adjust the end time appropriately if the record is known to contain a positive leap second. If the ms_readleapseconds or ms_readleapsecondfile routines have been called to read a leap second file into an internal list, it will be checked to know when leap seconds occur. If a leap second list is not available the fixed section data header is checked for a positive leap second indicator.

RETURN VALUESmsr_starttime, msr_starttime_uc and msr_endtime return a high precision epoch time on success and HPTERROR on error.

SEE ALSOms_intro(3), ms_time(3) and msr_unpack(3)

AUTHORChad Trabant IRIS Data Management Center
0
Johanes Gumabo
Data Size   :   6,719 byte
man-msr_endtime.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 203,905
Visitor ID   :     :  
Visitor IP   :   3.149.27.153   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.