next up previous contents
Next: WFDB_mstimstr Up: Conversion Functions Previous: WFDB_setecgstr   Contents


WFDB_timstr

Usage: STR = WFDB_timstr(T);  
Input: T: (integer) time, in sample intervals  
Output: STR: (string) time, in HH:MM:SS format  

This function translates a time expressed in sample intervals into a string indicating time in hours, minutes, and seconds. If T is positive, the string indicates the time interval between sample number T and sample number 0; otherwise, the time interval represented by -T is added to the base time (as indicated in the `.hea' file or previously set using WFDB_setbasetime) and the string indicates the time of day (and the date, if the base date has been set) at the time of sample number (-T).



George B. Moody 2005-06-02