title: Add hours from input , Datetime/Timedelta (Python)
body: <p>I'm trying to make a script to go to a website and enter in a time in a 24 hour format.
  I'm using the pyautogui module to perform the web tasks, and Datetime/Timedelta for the time.</p>
  <p>I have a big problem, and it's really bugging me.
  I want to add the number that the user inputs to the current time, the user input will be in hours. <code>E.G: user enters a 5, the script will add 5 hours to the current time</code>.</p>
  <p>Here's my code:</p>
  <pre><code>import pyautogui
  import datetime
  from datetime import timedelta
  
  xtime = input(&quot;enter a number to add in hours: &quot;)
  
      pyautogui.moveTo(833, 566, 1)
      pyautogui.click()
      datetime.format = '%HH:%MM'
      now + timedelta(hours=xtime)
      new_time = now + timedelta(xtime)
      pyautogui.typewrite(new_time)
      pyautogui.press('enter')
  </code></pre>
  <p>Please, if someone knows how I could do this, let me know. I've spent days trying this and nothing works for me. Thanks.</p>