[Scilab-users] Inverse of getdate()?

Samuel Gougeon sgougeon at free.fr
Mon Aug 14 00:50:30 CEST 2017


Hello Rafael,

Le 13/08/2017 à 20:15, Rafael Guerra a écrit :
>
> Dear Scilab’ers,
>
> Do you know of an inverse function for getdate() in Scilab, similar to 
> Octave’s mktime()?
>
> Example:
>
> d = getdate(1.5026e+09)
>
> d=
>
> 2017.8.32.225.1.13.6.53.20.0.
>
> If we have d (or the key part of it), how to compute 1.5026e+09?
>

The following should work:
(datenum(2017,8,13,6,53,20+0/1000) - datenum(1970,1,1))*86400

Best regards
Samuel

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


More information about the users mailing list