timeOfDay(timeIn, outUnit)

Version 1.1.0.0 (905 Bytes) by Marc Jakobi
calculates the time of day since 00:00 from datenum
44 Downloads
Updated 9 Oct 2016

View License

calculates the time of day.
Syntax: tod = timeOfDay(time, outUnit)
Input arguments:
- time: datenum time stamp
- outUnit: one of the following strings: 'nanoseconds', 'microseconds', 'milliseconds',
'seconds' (default), 'minutes' or 'days'
Output argument:
- tod: time of day in unit specified by unit input
(default: seconds)

Author: Marc Jakobi, 06.10.2016

Cite As

Marc Jakobi (2024). timeOfDay(timeIn, outUnit) (https://www.mathworks.com/matlabcentral/fileexchange/59524-timeofday-timein-outunit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
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!
Version Published Release Notes
1.1.0.0

Added performance improvements suggested by Jan Simon.

1.0.0.0