[Scilab-users] Inverse of getdate()?
Rafael Guerra
jrafaelbguerra at hotmail.com
Mon Aug 14 09:07:50 CEST 2017
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:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Monday, August 14, 2017 12:51 AM
To: Users mailing list for Scilab <users at lists.scilab.org>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170814/400c79f4/attachment.htm>
More information about the users
mailing list