So when the user inser the time,(otherwise the time is alreday set from the beginning as it's shown which is London for me)
how can I convert it into different countries time zone?
This is what i did and I got an error,
london= datetime(2019,02,28,0,0,0,'TimeZone','local','format','d - MMM - y HH:mm:ss Z')for time =input('Choose: Amsterdam,Tokyo,Canberra,Los Angeles,New York,Local(London)')if time == 'amsterdam' | 'Amsterdam'ams= london +hours(1)disp(ams)elseif time == 'Tokyo' | 'tokyo'tok= london + hours(9)disp(tok)elseif time == 'Canberra'|'canberra'can = london +hours(11)disp(can)elseif time == 'Los Angeles'|'los angeles'los= london + hours(-8)disp(los)elseif time == 'New York' |'new york'new= london +hours(-5)disp(new)elsedisp('Choose again')endend
Best Answer