scraper/github/queryManager.py
def _awaitReset(self, utcTimeStamp, verbose=True):
        """Wait until the given UTC timestamp.

        Args:
            utcTimeStamp (int): A UTC format timestamp.
            verbose (Optional[bool]): If False, all extra printouts will be
                suppressed. Defaults to True.

        """
        resetTime = pytz.utc.localize(datetime.utcfromtimestamp(utcTimeStamp))
        _vPrint(verbose, "--- Current Timestamp")
        _vPrint(verbose, "      %s" % (time.strftime('%c')))
        now = pytz.utc.localize(datetime.utcnow())
        waitTime = round((resetTime - now).total_seconds()) + 1
        _vPrint(verbose, "--- Current UTC Timestamp")
        _vPrint(verbose, "      %s" % (now.strftime('%c')))
        _vPrint(verbose, "--- GITHUB NEEDS A BREAK Until UTC Timestamp")
        _vPrint(verbose, "      %s" % (resetTime.strftime('%c')))
        self._countdown(waitTime, printString="--- Waiting %*d seconds...", verbose=verbose)
        _vPrint(verbose, "--- READY!")
def _awaitReset(self, utcTimeStamp, verbose=True):
        resetTime = pytz.utc.localize(datetime.utcfromtimestamp(utcTimeStamp))
        _vPrint(verbose, "--- Current Timestamp")
        _vPrint(verbose, "      %s" % (time.strftime('%c')))
        now = pytz.utc.localize(datetime.utcnow())
        waitTime = round((resetTime - now).total_seconds()) + 1
        _vPrint(verbose, "--- Current UTC Timestamp")
        _vPrint(verbose, "      %s" % (now.strftime('%c')))
        _vPrint(verbose, "--- GITHUB NEEDS A BREAK Until UTC Timestamp")
        _vPrint(verbose, "      %s" % (resetTime.strftime('%c')))
        self._countdown(waitTime, printString="--- Waiting %*d seconds...", verbose=verbose)
        _vPrint(verbose, "--- READY!")
def _awaitReset ( self , utcTimeStamp , verbose = True ) : resetTime = pytz . utc . localize ( datetime . utcfromtimestamp ( utcTimeStamp ) ) _vPrint ( verbose , "--- Current Timestamp" ) _vPrint ( verbose , "      %s" % ( time . strftime ( '%c' ) ) ) now = pytz . utc . localize ( datetime . utcnow ( ) ) waitTime = round ( ( resetTime - now ) . total_seconds ( ) ) + 1 _vPrint ( verbose , "--- Current UTC Timestamp" ) _vPrint ( verbose , "      %s" % ( now . strftime ( '%c' ) ) ) _vPrint ( verbose , "--- GITHUB NEEDS A BREAK Until UTC Timestamp" ) _vPrint ( verbose , "      %s" % ( resetTime . strftime ( '%c' ) ) ) self . _countdown ( waitTime , printString = "--- Waiting %*d seconds..." , verbose = verbose ) _vPrint ( verbose , "--- READY!" )
Wait until the given UTC timestamp.

        Args:
            utcTimeStamp (int): A UTC format timestamp.
            verbose (Optional[bool]): If False, all extra printouts will be
                suppressed. Defaults to True.
Wait until the given UTC timestamp .