root/gliderproc/trunk/MATLAB/opnml/FCAST_1.2/timefun/ms2hms.m
Revision 495 (checked in by cbc, 12 years ago) |
---|
Line | |
---|---|
1 | function [hour,min,sec]=ms2hms(millisecs) |
2 | %MS2HMS converts milliseconds to integer hour,minute,seconds |
3 | % USAGE: [hour,min,sec]=ms2hms(millisecs) |
4 | % |
5 | sec=round(millisecs/1000); |
6 | hour=floor(sec/3600); |
7 | min=floor(rem(sec,3600)/60); |
8 | sec=round(rem(sec,60)); |
Note: See TracBrowser for help on using the browser.