def tokenHasNotExpired(accessToken):
    accessTokenCreationTimestamp = GlobalVariables.getGlobalCustomVar(ACCESS_TOKEN_CREATION_TIMESTAMP_KEY_NAME);

    #Return the time as a floating point number expressed in seconds since the epoch, in UTC
    currentTime = time.time();
    difference = currentTime - accessTokenCreationTimestamp;
    print "difference in time in seconds:" + str(difference)

    accessTokenExpiryInSeconds = GlobalVariables.getGlobalCustomVar(ACCESS_TOKEN_EXPIRY_IN_SECONDS_KEY_NAME);
    if difference > accessTokenExpiryInSeconds:
        print "token has expired"
        return False;

    print "token has NOT expired"
    return True;