Hello Samuel,

Thanks a lot for the responses.

I am bit confused about the leap seconds, getdate seems to handle those but 
datenum formula below might ignore them?

Best regards,
Rafael

From: users [mailto:[email protected]] On Behalf Of Samuel Gougeon
Sent: Monday, August 14, 2017 12:51 AM
To: Users mailing list for Scilab <[email protected]>
Subject: Re: [Scilab-users] Inverse of getdate()?

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
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to