parameters: (self, credentials)
return_statement: return seconds < self._expiry_window_seconds
docstring: Check if credentials are expired.
docstring_summary: Check if credentials are expired.
docstring_tokens: Check if credentials are expired .
function: def _is_expired(self, credentials):
          """Check if credentials are expired."""
          end_time = _parse_if_needed(credentials['Credentials']['Expiration'])
          seconds = total_seconds(end_time - _local_now())
          return seconds < self._expiry_window_seconds
function_tokens: def _is_expired ( self , credentials ) : end_time = _parse_if_needed ( credentials [ 'Credentials' ] [ 'Expiration' ] ) seconds = total_seconds ( end_time - _local_now ( ) ) return seconds < self . _expiry_window_seconds