Apr-03-2017, 11:22 AM
Thank you for your reply,
I met some difficulties to understand your proposition.
The result is 2010-10-23 10:17:10 and does not belongs to [2010-11-04 00:00:00, 2011-06-11 00:00:00].
You proposed the following code:
matlab_datenum = 6.365057116950260162e+10
some_matlab_date = matlab_datenum - 1000000000 # million seconds earlier?
some_python_date = ( datetime.datetime(2010, 11, 4, 0, 3, int(50.209589)) # your base date
+ datetime.timedelta(seconds = (some_matlab_date - matlab_datenum)/1000) )
print (some_python_date)
But it provides the same value "2010-10-23 10:17:10" of "some_python_date" for any value of matlab_datenum!!
is it correct the proposiotion code ? or i missunderstand ?
Thank you very much for your help
I met some difficulties to understand your proposition.
The result is 2010-10-23 10:17:10 and does not belongs to [2010-11-04 00:00:00, 2011-06-11 00:00:00].
You proposed the following code:
matlab_datenum = 6.365057116950260162e+10
some_matlab_date = matlab_datenum - 1000000000 # million seconds earlier?
some_python_date = ( datetime.datetime(2010, 11, 4, 0, 3, int(50.209589)) # your base date
+ datetime.timedelta(seconds = (some_matlab_date - matlab_datenum)/1000) )
print (some_python_date)
But it provides the same value "2010-10-23 10:17:10" of "some_python_date" for any value of matlab_datenum!!
is it correct the proposiotion code ? or i missunderstand ?
Thank you very much for your help