Home > RPSstuff > h2hms.m

h2hms

PURPOSE ^

H2HMS: converts hours to hours, minutes, and seconds

SYNOPSIS ^

function [hour,min,secs]=h2hms(hours);

DESCRIPTION ^

 H2HMS: converts hours to hours, minutes, and seconds

  Usage:  [hour,min,sec]=h2hms(hours);

  Rich Signell rsignell@usgs.gov

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [hour,min,secs]=h2hms(hours);
0002 % H2HMS: converts hours to hours, minutes, and seconds
0003 %
0004 %  Usage:  [hour,min,sec]=h2hms(hours);
0005 %
0006 %  Rich Signell rsignell@usgs.gov
0007 %
0008 hour=floor(hours);
0009 %
0010 mins=rem(hours,1)*60;
0011 min=floor(mins);
0012 %
0013 secs=round(rem(mins,1)*60);
0014

Generated on Wed 30-Nov-2005 14:45:02 by m2html © 2003