gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-13/Ex1302.m

    %例13-2 日期时间局部信息提取函数
str=date
year(str)
month(str)
day(str)
minute(str)