mdatestr, mdatenum: A simple alternative of datestr and datenum

版本 1.0.0.0 (1.6 KB) 作者: Zhiqiang Zhang
the original datestr and datenum are powerful, but slow. The two functions' are limited, but faster.
1.4K 次下载
更新时间 2010/10/29

查看许可证

The original datestr and datenum are powerful, but slow.

mdatestr, mdatenum only convert date between string with format 'yyyy-mm-dd' and series value (with Excel type).

They cost 20% time of datestr and datenum(with specific format).

% usage
% mdatenum('2010-10-30') % ans = 734421
% mdatestr(73421) % ans = '2010-10-30'

引用格式

Zhiqiang Zhang (2024). mdatestr, mdatenum: A simple alternative of datestr and datenum (https://www.mathworks.com/matlabcentral/fileexchange/29184-mdatestr-mdatenum-a-simple-alternative-of-datestr-and-datenum), MATLAB Central File Exchange. 检索来源 .

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

参考作品: DateConvert

Community Treasure Hunt

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

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