Round off dates and times

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

您现在正在关注此提交

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

类别

Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

Fixed H1 comment line so "lookfor" will work.

1.0.0.0