(self, request)
parses the "since" parameter
parses the "since" parameter
parses the since parameter
def get_since(self, request):
        """parses the "since" parameter"""
        since_ = request.GET.get("since", None)
        if since_ is None:
            raise ValueError("parameter since missing")
        try:
            return datetime.fromtimestamp(float(since_))
        except ValueError as e:
            raise ValueError("'since' is not a valid timestamp: %s" % str(e))
def get_since ( self , request ) : since_ = request . GET . get ( "since" , None ) if since_ is None : raise ValueError ( "parameter since missing" ) try : return datetime . fromtimestamp ( float ( since_ ) ) except ValueError as e : raise ValueError ( "'since' is not a valid timestamp: %s" % str ( e ) )