Home > omviz > 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

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 sec=round(secs);
0005 hour=floor(sec/3600);
0006 min=floor(rem(sec,3600)/60);
0007 sec=round(rem(sec,60));

Generated on Thu 01-Dec-2005 08:50:35 by m2html © 2003