Apr-03-2017, 06:01 PM
I guess that there was some misunderstooding. matlab_datenum was your original matlab datenum, some_matlab_date was testing matlab datenum to show that it "works", as i had no other matlab date i created it. I rewrote that expression without using any auxiliary variables:
datetime.datetime(2010, 11, 4, 0, 3, 50) + datetime.timedelta(seconds = (matlab_date_to_convert - 63650171169.50261)/1000)If you replace matlab_date_to_convert with your matlab datenum that you want to convert to python date, this expression should give python date corresponding to your matlab datenum.