title: Set current system time from python on Linux and Solaris
body: <p>Using the below code, I can fetch the current date and time in python:</p>
  
  <pre><code>#!/usr/bin/python
  import time
  
  now = time.strftime("%c")
  print "Current time %s"  % now
  </code></pre>
  
  <p>This will output:</p>
  
  <pre><code>Current time Mon Oct 24 09:25:17 2016
  </code></pre>
  
  <p>But, I need to <strong>change</strong> the system time to <code>Mon Oct 24 11:25:17 2016</code> i.e. I need to set system date by adding 2 hours to existing time. Need to change the system date to 2 hours from now. (this question has been marked as duplicate, please check the question once)</p>
  
  <p>This needs to be performed for Linux and Solaris hosts.</p>
  
  <p>Please consider me as a python beginner and provide solutions.</p>