Filter löschen
Filter löschen

what is this eror and what does it mean and how can i solve it ?

2 Ansichten (letzte 30 Tage)
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.))

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Feb. 2018
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 Kommentare
javad amoli
javad amoli am 11 Feb. 2018
How should I write start_date and End_date? please write it for me ....
Walter Roberson
Walter Roberson am 20 Mär. 2018
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 ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by