how to use datetime ?
显示 更早的评论
I am not sure what am i doing wrong here.
jday = '190608' % year month day
datetime(jday, 'InputFormat', 'yyMMDD')
this should give me an out put as 8-june-2019
but instead of that it gives me 08-Jan-2019 ! why is this happening ??
i have another question ! i have a time in this format 190608.347009447 - 'yymmdd.ffffffff', 'ffffffff' is the fractional part of the day.
to read this i am using this code !
inputtime = '190608.347009447';
jday = inputtime(1:6);
date(i) = datetime(jday, 'InputFormat', 'yyMMDD') + days(mod(str2double(inputtime), 1))
it gives me an error !!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Inertial Sensor Fusion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!