<div dir="ltr"><div>Dear,</div><div><br></div><div>thanks to the xls-link toolbox I am able to read data directly from an xlsx-file.</div><div><br></div><div>however, there is a strange data conversion going on:</div><div><br></div><div>in the xlsx-file a column contains time data such as:</div><div><br></div><div>09:27:38 // this is a GMT value<br></div><div><br></div><div>result after reading the data into Scilab is like this<br></div>0,394189814814815<div><br></div><div>It is possible to get the hh:mm:ss back from this, like:</div><div><br></div><div>
0.394189814814815 * 24 =
9.4605556 --> 9 = hours value<br></div><div>0.4605556 * 60 = 27.63336 --> 27 = minutes value<br></div><div>0.63336*60 = 38.0016 --> 38 = seconds value</div><div><br></div><div>or: <br></div><div><br></div><div>seconds =
0.394189814814815 * 24 * 60 * 60 ;</div><div>date = getdate(
seconds
) <br></div><div>- however</div><div> --> the date would be wrong</div><div> --> which is obvious, because the initial value does not indicate a specific day<br></div><div><br></div><div> --> the time would have to be corrected for daylight saving time (summer time) if necessary<br></div><div> --> result is 10:27:38<br></div><div><br></div><div>My question is:</div><div>Why is the extract from the xls file not intially in human readable format?</div><div>Is it, because EXCEL internally stores the time value in a decimal fashioned way and only displays in human readable format?</div><div><br></div><div>Thank you,</div><div>Philpp<br></div><div><br></div><div><br></div><div><br></div></div>