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')
引用格式
Kevin J. Delaney (2026). Round off dates and times (https://ww2.mathworks.cn/matlabcentral/fileexchange/26374-round-off-dates-and-times), MATLAB Central File Exchange. 检索时间: .
致谢
参考作品: units.m
