Home > bobstuff > hms2h.m

hms2h

PURPOSE ^

HMS2H hours, minutes, and seconds to decimal hours.

SYNOPSIS ^

function h=hms2h(h,m,s)

DESCRIPTION ^

 HMS2H hours, minutes, and seconds to decimal hours.

 h=HMS2H(h,m,s) converts hours, minutes, and seconds to 
 decimal hours.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 ver. 1: 5/15/91 (RS)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001    function h=hms2h(h,m,s)
0002 
0003 % HMS2H hours, minutes, and seconds to decimal hours.
0004 %
0005 % h=HMS2H(h,m,s) converts hours, minutes, and seconds to
0006 % decimal hours.
0007 %
0008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0009 % ver. 1: 5/15/91 (RS)
0010 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0011 
0012 h=h+m./60 + s./3600;
0013 end

Generated on Thu 01-Dec-2005 07:46:03 by m2html © 2003