Home > RPSstuff > s2hms.m

s2hms

PURPOSE ^

S2HMS: converts seconds to integer hour,minute,seconds

SYNOPSIS ^

function [hour,min,sec]=s2hms(secs)

DESCRIPTION ^

 S2HMS:  converts seconds to integer hour,minute,seconds
  
  Usage: 
        [hour,min,sec]=s2hms(secs)

  Rich Signell rsignell@usgs.gov

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [hour,min,sec]=s2hms(secs)
0002 % S2HMS:  converts seconds to integer hour,minute,seconds
0003 %
0004 %  Usage:
0005 %        [hour,min,sec]=s2hms(secs)
0006 %
0007 %  Rich Signell rsignell@usgs.gov
0008  
0009 hour=floor(secs/3600);
0010 min=floor(rem(secs,3600)/60);
0011 sec=round(rem(secs,60));

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