Convert seconds to human readable string(s)

Convert an amount of seconds to hours/days/weeks/etc.

https://github.com/rodyo/FEX-seconds2human

Download
Download

You are now following this Submission

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

Cite As

Rody Oldenhuis (2026). Convert seconds to human readable string(s) (https://github.com/rodyo/FEX-seconds2human/releases/tag/v1.6), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.6.0

See release notes for this release on GitHub: https://github.com/rodyo/FEX-seconds2human/releases/tag/v1.6

Download
1.4.0

- Added 'decennium' as a time unit
- Implemented more robust error-checking
- Small documentation update

Download
1.3.0

Updated contact info

Download
1.2.0

- reduced the default verbosity, as suggested by Jos. The verbosity can now be changed with a second argument.

- Included (sec < 1) case, as suggested by Jesse.

Download
1.1.0

updated code thanks to Jos' comments.

Download
1.0.0

Download
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.