<div dir="ltr"><div>Hi Stéphane,</div><div><br></div><div>That works.</div><div>Thanks for the hint.</div><div><br></div><div>Best Regards,<br></div><div>Philipp<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 5. Nov. 2021 um 14:15 Uhr schrieb Stéphane Mottelet <<a href="mailto:stephane.mottelet@utc.fr">stephane.mottelet@utc.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Philip,<br>
<br>
The xlsreadwrite toolbox yields formatted dates in the string field. You should give it a try.<br>
<br>
S.<br>
<br>
> Le 5 nov. 2021 à 10:43, P M <<a href="mailto:p.muehlmann@gmail.com" target="_blank">p.muehlmann@gmail.com</a>> a écrit :<br>
> <br>
> <br>
> Dear,<br>
> <br>
> thanks to the xls-link toolbox I am able to read data directly from an xlsx-file.<br>
> <br>
> however, there is a strange data conversion going on:<br>
> <br>
> in the xlsx-file a column contains time data such as:<br>
> <br>
> 09:27:38 // this is a GMT value<br>
> <br>
> result after reading the data into Scilab is like this<br>
> 0,394189814814815<br>
> <br>
> It is possible to get the hh:mm:ss back from this, like:<br>
> <br>
> 0.394189814814815 * 24 = 9.4605556 --> 9 = hours value<br>
> 0.4605556 * 60 = 27.63336 --> 27 = minutes value<br>
> 0.63336*60 = 38.0016 --> 38 = seconds value<br>
> <br>
> or: <br>
> <br>
> seconds = 0.394189814814815 * 24 * 60 * 60 ;<br>
> date = getdate( seconds ) <br>
> - however<br>
> --> the date would be wrong<br>
> --> which is obvious, because the initial value does not indicate a specific day<br>
> <br>
> --> the time would have to be corrected for daylight saving time (summer time) if necessary<br>
> --> result is 10:27:38<br>
> <br>
> My question is:<br>
> Why is the extract from the xls file not intially in human readable format?<br>
> Is it, because EXCEL internally stores the time value in a decimal fashioned way and only displays in human readable format?<br>
> <br>
> Thank you,<br>
> Philpp<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
> <a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>