Round off dates and times
Rounds off a datenum to the nearest second, minute, hour, day, month or year.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Kevin J. Delaney (2026). Round off dates and times (https://www.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 (5.96 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux