code: def get_time_offset():
      
      try:
          resp = webapi.post('ITwoFactorService', 'QueryTime', 1, params={'http_timeout': 10})
      except:
          return None
  
      ts = int(time())
      return int(resp.get('response', {}).get('server_time', ts)) - ts
docs: Get time offset from steam server time via WebAPI
  
      :return: time offset (``None`` when Steam WebAPI fails to respond)
      :rtype: :class:`int`, :class:`None`