[Scilab-users] How to interpret date strings?
Samuel Gougeon
sgougeon at free.fr
Mon Jan 21 20:38:07 CET 2013
Hello,
Le 21/01/2013 03:07, Iai Masafumi ax a écrit :
> How do you convert date strings into the serial date number? For
> example, a date string like:
> Tue Jan 15 13:17:09.914 2013
>
> Especially, is there an easy way to convert month names to numbers? Like
> "Jan" to 1, etc.
you may have a look at datenum() and datevec() from there:
http://help.scilab.org/docs/5.4.0/en_US/section_8d3a5b8b1e06deb6ed458509a08aba32.html
moreover:
months = ["jan" "feb" "mar" "april" "may" "june" "july" "aug" "sept"
"oct" "nov" "dec"];
months(3)
find(months=="april")
HTH
Samuel
More information about the users
mailing list