timeOfDay(timeIn, outUnit)

Version 1.1.0.0 (905 Bytes) by Marc Jakobi
calculates the time of day since 00:00 from datenum
45 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 (2026). timeOfDay(timeIn, outUnit) (https://uk.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
Version Published Release Notes
1.1.0.0

Added performance improvements suggested by Jan Simon.

1.0.0.0