MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayTo resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Asked by huda nawaf on 26 Nov 2012

hi, The range of my data is 2005 to Ontober 2007. when I extracted min and max, I got

709277 and 733325 why when use this function datestr(733325)

I will get : 10-Oct-2007

it is ok . and when use

datestr(709277)

ans =

07-Dec-1941

Thanks in advance

*No products are associated with this question.*

## 11 Comments

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_113619

Where did the 709277 come from? What is the earliest date in your data?

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114557

Thanks Walter,

this number in my data.

I extracted the min and max of timestamp to see the range of duration time.

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114558

"Your data has not such timestamp" "this number in my data."

According to your contradicting statements your question is nonsense. Please, reformulate your question.

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114570

Huda, are you saying that 709277 is part of the data that is being extracted from your timestamps, but you do not

expectthat range of data? What range do you expect? Is it possible that there is something wrong in how you read or store the data so that values you do not expect are showing up in the timestamp column?Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114602

DO you have any idea of what you are really asking! I have already wasted time responding.

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114618

datestr(709277) really is 07-Dec-1941. What date were you expecting as your earliest date?

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114631

it must be in 2005. As mentioned in researchs.

thanks

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114636

01-Jan-2005 is 732313.

Where did you get the data from? For example, is it from NOAA Hurricane Forecasting data? Can you give us a URL of the original dataset? Can you give us the code you use to load the data?

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114879

hi,

*The data that I used is flixster dataset

http://www.cs.sfu.ca/~sja25/personal/datasets/ this dataset is associated with timestamp lately.

I would like to say thing. when you install this dataset , you will find that timestamp in this format ex. 10/10/2007. i.e not integer. But, because this dataset is very huge, I converted the timestamp into integer, then get smaller file in terms of size.

when deal this dataset, I found out the min integer is 709277. befor writing this reply, I came back to original file ,I found out the coresponded date is 07-Dec-1941 as datestr did.

you can be sure if you checked the line with number 7756812. where each line in this dataset has 4 columns.the last column is the date. * thanks

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114880

I am not clear: are you saying that there

isa date of 07-Dec-1941 in the original file? If so then there is no problem, datestr() is just responding correctly for the data.If there was no 07-Dec-1941 in the original file, then we will need to know how you converted the dates.

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/54862#comment_114882

Yes the datestr is working correctly. I were thinking there is somthing error, because it is supposed that earliest time in this dataset in 2005. Now, I'm sure there is error in published data.

Thanks