getversion() & getversion('scilab','string_info')

Samuel Gougeon Samuel.Gougeon at univ-lemans.fr
Tue Nov 3 19:35:46 CET 2009


Hello,

What's the usefulness of  getversion('scilab', 'string_info')
compared to simply getversion() ?

Moreover, it would be nice to add to getversion()  an option
to get the release date in human readable normalized format.
Examples:

On scilab-5.1.1:
getversion('date') => 2009.4.14, 9:14:40
On scilab-master-1251126757:
getversion('date') => 2009.8.24, 17:12:37

The related piece of code could be:
 vers=getversion('scilab');
 d=getdate(vers(4));
 d=sprintf("%i.%i.%i, %i:%i:%i",d(1),d(2),d(6),d(7),d(8),d(9));

(yes, a SEP would be required)

Regards
Samuel




More information about the users mailing list