Seconds to Hours, Minutes and Seconds Conversion

Convert seconds into descriptive string.
180 Downloads
Updated 31 Jul 2017

View License

Converts a timespan t in seconds into a string with hours, minutes and seconds, however not days or even bigger time units. Zero values are neglected intelligently. The 's' at the end of hour(s), minute(s) and second(s) is also included dependent on the actual number of time units.

Cite As

Roman Müller-Hainbach (2024). Seconds to Hours, Minutes and Seconds Conversion (https://www.mathworks.com/matlabcentral/fileexchange/63931-seconds-to-hours-minutes-and-seconds-conversion), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0