cheetahapi/core/authenticate.py
def token_date_not_expired(self, token_date_creation):
        """
        Checks the token date creation does not exceed the number of days allowed
        :param token_date_creation: Date as string
        :return: True if the date does NOT exceed the number of days from today, False in other case
        """
        datetime_object = datetime.strptime(str(token_date_creation), "%Y-%m-%d %H:%M:%S.%f")
        a = (self.get_today_date() - datetime_object).days
        return a <= self.get_token_days_valid()

        Checks the token date creation does not exceed the number of days allowed
        :param token_date_creation: Date as string
        :return: True if the date does NOT exceed the number of days from today, False in other case
        
Checks the token date creation does not exceed the number of days allowed
Checks the token date creation does not exceed the number of days allowed
def token_date_not_expired(self, token_date_creation):
        datetime_object = datetime.strptime(str(token_date_creation), "%Y-%m-%d %H:%M:%S.%f")
        a = (self.get_today_date() - datetime_object).days
        return a <= self.get_token_days_valid()
def token_date_not_expired ( self , token_date_creation ) : datetime_object = datetime . strptime ( str ( token_date_creation ) , "%Y-%m-%d %H:%M:%S.%f" ) a = ( self . get_today_date ( ) - datetime_object ) . days return a <= self . get_token_days_valid ( )
Checks the token date creation does not exceed the number of days allowed
Checks the token date creation does not exceed the number of days allowed
"""
        Checks the token date creation does not exceed the number of days allowed
        :param token_date_creation: Date as string
        :return: True if the date does NOT exceed the number of days from today, False in other case
        """
True if the date does NOT exceed the number of days from today, False in other case
True if the date does NOT exceed the number of days from today False in other case
self
token_date_creation
Date as string
Date as string