Seconds to hours, minutes, seconds

버전 1.4.0.0 (1.48 KB) 작성자: Simon Robinson
Converts a time in seconds to a time in hours, minutes and seconds.
다운로드 수: 5K
업데이트 날짜: 2009/2/2

라이선스 보기

A very simple program to convert a time in seconds to a string giving the time in hours, minutes and seconds. Useful for producing readable toc output from programs which run for ages.

e.g.

help secs2hms
SECS2HMS - converts a time in seconds to a string giving the time in hours, minutes and second
Usage TIMESTRING = SECS2HMS(TIME)]);
Example 1: >> secs2hms(7261)
>> ans = 2 hours, 1 min, 1.0 sec
Example 2: >> tic; pause(61); disp(['program took ' secs2hms(toc)]);
>> program took 1 min, 1.0 secs

인용 양식

Simon Robinson (2024). Seconds to hours, minutes, seconds (https://www.mathworks.com/matlabcentral/fileexchange/22817-seconds-to-hours-minutes-seconds), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.4.0.0

Function name shortened. H1 line and help added.

1.0.0.0