timestr

String representation of time without date in MATLAB
3.6K Downloads
Updated 4 Dec 2019

Convert serial date numbers into time strings. Time strings are of HH:MM:SS.SSS format - like date strings, but without the date.
Ex:
timestr(now)
09:15:36.4000
Note: A time datetime object was introduced in MATLAB R2014b which is way better than this little utility. If you've got access to it, use it instead!

Cite As

Michelle Hirsch (2024). timestr (https://github.com/michellehirsch/timestr), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dates and Time 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!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.5.0.2

Connected to GitHub

1.5.0.1

Updated license

1.5.0.0

Updated to work with R2014b. Make available as a Toolbox file.

1.2.0.0

Removed mistaken attribution.

1.1.0.0

Updated copyright.

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.