def checkTimestamp(nonce_string, allowed_skew=SKEW, now=None):
 try:
  (stamp, _) = split(nonce_string)
 except ValueError:
  return False
 else:
  if (now is None):
   now = time()
  past = (now - allowed_skew)
  future = (now + allowed_skew)
  return (past <= stamp <= future)

def checkTimestamp ( nonce_string , allowed_skew = SKEW , now = None ) : try : ( stamp , _ ) = split ( nonce_string ) except ValueError : return False else : if ( now is None ) : now = time ( ) past = ( now - allowed_skew ) future = ( now + allowed_skew ) return ( past <= stamp <= future )
is the timestamp that is part of the specified nonce string within the allowed clock-skew of the current time? .