Round off dates and times

版本 1.1.0.0 (6.0 KB) 作者: Kevin J. Delaney
Rounds off a datenum to the nearest second, minute, hour, day, month or year.
2.2K 次下载
更新时间 2010/5/3

查看许可证

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 (2024). Round off dates and times (https://www.mathworks.com/matlabcentral/fileexchange/26374-round-off-dates-and-times), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息
致谢

参考作品: units.m

启发作品: Round Dates and Times

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Fixed H1 comment line so "lookfor" will work.

1.0.0.0