what is this eror and what does it mean and how can i solve it ?
1 次查看(过去 30 天)
显示 更早的评论
what is this eror and what does it mean and how can i solve it ?
((Error using datenum (line 178) DATENUM failed.
Error in get_the_week_timestamps (line 9) Current_date=floor(datenum(Start_date));
Error in vahid (line 46) [Weekly_data_time_stamps]= get_the_week_timestamps (Start_date,End_date);
Caused by: Error using datevec (line 247) Too many time fields in 13-mars-2016 00:00:00-08:00.))
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170200/image.png)
0 个评论
采纳的回答
Walter Roberson
2018-2-11
datenum cannot handle time ranges.
Possibly the -08:00 is intended to be a timezone offset. datenum cannot handle timezones at all. But the newer datetime() can handle timezones.
5 个评论
Walter Roberson
2018-3-20
You have not indicated what those time strings mean . Does the -08:00 and -07:00 indicate time zone information relative to UTC? Or does it indicate a range of time, as in from midnight to 8 am ?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!