help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

datenum returns invalid result for month?


From: Fritz Sonnichsen
Subject: datenum returns invalid result for month?
Date: Tue, 10 Apr 2018 12:33:49 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

I am working with datenum. If you run the statements below you will get:
10.380 and 100.38 for the results.
Should they not be the same?

Thanks
Fritz
=================================================
   dfm   =  'MM/DD/YYYY,HH:MM:SS';
   datenum ('04/10/2018,09:07:41',dfm) - datenum (2018, 0, 0, 0, 0, 0)
   datenum (2018, 04, 10, 09, 07, 41)       - datenum (2018, 0, 0, 0, 0, 0)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]