MATLAB——时间,日期及显示格式
(https://www.cnblogs.com/ruo-li-suo-yi/p/7507063.html)
一、日期和时间
1.生成指定格式日期和时间
标准日期格式
2.获取当前时间的数值
>> datestr(now,=
-- ::
>> datestr(now,yyyy-mm-dd HH:MM:SS=
-- ::
>> clock
ans =
1.0e+03 *
2.0170 0.0090 0.0110 0.0200 0.0030 0.0264
>> datestr(now,HH:MM:SS=
::
>> format short>