Would someone know how to convert this matlab code into python ?
for i=1:100
RefTime = datenum('01-Jan-1900 00:00:00');
MyTime=97847+i;
t0=addtodate(RefTime,double(MyTime), 'hour');
date(i)=datestr(t0,'yyyymmddHH');
end
I am trying here to convert an hourly numerical date format (MyTime) which reference point (e.g. origin) is 01-Jan-1900 at 00:00 to a YYYYMMDDHH format.