parseTime

Converts number of seconds to a human readable time string.

https://github.com/raaperrotta/parseTime

You are now following this Submission

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 (2026). parseTime (https://github.com/raaperrotta/parseTime), GitHub. Retrieved .

Acknowledgements

Inspired by: num2sepstr

Inspired: statusbarTimer

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.10.0.0

Connected to github

1.2.0.0

Added links to File Exchange dependencies.

1.1.0.0

Added image

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.