code: def datetime_local_to_utc(local):
      
      timestamp = time.mktime(local.timetuple())
      return datetime.datetime.utcfromtimestamp(timestamp)
docs: Simple function to convert naive :std:`datetime.datetime` object containing
      local time to a naive :std:`datetime.datetime` object with UTC time.