Round off dates and times

Rounds off a datenum to the nearest second, minute, hour, day, month or year.

Download
Download

You are now following this Submission

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

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0

Fixed H1 comment line so "lookfor" will work.

Download
1.0.0

Download