You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Rounds off a datenum to the nearest second, minute, hour, day, month or year. Zip file includes "units.m" (file 4093) by Henning Ressing.
Example: datenum_round_off(now, 'minute')
Cite As
Kevin J. Delaney (2026). Round off dates and times (https://in.mathworks.com/matlabcentral/fileexchange/26374-round-off-dates-and-times), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: units.m
General Information
- Version 1.1.0.0 (5.99 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
