[Scilab-users] Scilab date and hour functions

Samuel Gougeon sgougeon at free.fr
Wed Nov 28 23:09:17 CET 2012


Le 28/11/2012 20:16, julien.langouet a écrit :
> .../..
> My question is : How can I display or create a matrix with the time in a
> different format? I would like to have the time displayed in this kind of
> format hh:mm:ss,ms for exemple : 01:15:36,4 ...
> Is this possible?
Something like the following:

t  =  3600271;  // ms
[A,M,J,h,mn,s]=datevec(t/1000/24/3600);
out =  msprintf("%02d:%02d:%04.1f",h,  mn  ,s)

Hope This Helps

Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121128/2b85d884/attachment.htm>


More information about the users mailing list