File Exchange

image thumbnail


version (118 KB) by Robert
Converts number of seconds to a human readable time string.


Updated 25 Aug 2017

From GitHub

View Version History

View license on GitHub

Editor's Note: This file was selected as MATLAB Central Pick of the Week

timestr = parseTime(numSeconds)
Returns a string describing the equivalent time in years, months, weeks, days, hours, minutes, and seconds.

Cite As

Robert (2021). parseTime (, GitHub. Retrieved .

Comments and Ratings (1)

Will Campbell

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: num2sepstr

Inspired: statusbarTimer

Community Treasure Hunt

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

Start Hunting!