[Scilab-users] How to read in date & time ?

amonmayr at laas.fr amonmayr at laas.fr
Tue Nov 7 15:46:49 CET 2017


Hello Richard,

There are:

datevec
datenum
getdate

that could do the job.
I am not sure whether there is a recommended way of doing the conversion.

Cheers,

Antoine



Le 07/11/2017 à 15:38, Richard llom a écrit :
> Hello,
> I have logfiles in the following form:
> DESC: AAA 2017
> Datum;Zeit;kWh
> 01.01.2017;06:00;419,942
> 01.01.2017;07:00;513,273
> 01.01.2017;08:00;478,268
> 01.01.2017;09:00;711,572
> 01.01.2017;10:00;606,592
> 01.01.2017;11:00;594,92
> 01.01.2017;12:00;594,92
> 01.01.2017;13:00;524,933
> ...
>
> I can read these in either as double or string
> [log_data, comments] = csvRead(log_file, ";", ",", "double",[],
> "/^[^0-9\-]/");
>
> [log_data, comments] = csvRead(log_file, ";", ",", "string",[],
> "/^[^0-9\-]/");
>
> However what I'm missing is a way to convert the date & time column to a
> date format in scilab. There doesn't seem to be function for this in scilab.
> Is there a recommended way of doing so?
>
> Thanks & regards
> richard
>
>
> PS:
> I'm so glad the list is working again! Would have been nice tho to inform
> the users in advance and with some sort of status.scilab.org site or
> something...
>
>
>
> --
> Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the users mailing list