@return_false_on_exception<EOL><INDENT>def validate_timestamps(self):<DEDENT>
conditions_nodes = self.__query_assertion('<STR_LIT>')<EOL>for conditions_node in conditions_nodes:<EOL><INDENT>nb_attr = conditions_node.get('<STR_LIT>')<EOL>nooa_attr = conditions_node.get('<STR_LIT>')<EOL>if nb_attr and OneLogin_Saml2_Utils.parse_SAML_to_time(nb_attr) > OneLogin_Saml2_Utils.now() + OneLogin_Saml2_Constants.ALLOWED_CLOCK_DRIFT:<EOL><INDENT>raise OneLogin_Saml2_ValidationError(<EOL>'<STR_LIT>',<EOL>OneLogin_Saml2_ValidationError.ASSERTION_TOO_EARLY<EOL>)<EOL><DEDENT>if nooa_attr and OneLogin_Saml2_Utils.parse_SAML_to_time(nooa_attr) + OneLogin_Saml2_Constants.ALLOWED_CLOCK_DRIFT <= OneLogin_Saml2_Utils.now():<EOL><INDENT>raise OneLogin_Saml2_ValidationError(<EOL>'<STR_LIT>',<EOL>OneLogin_Saml2_ValidationError.ASSERTION_EXPIRED<EOL>)<EOL><DEDENT><DEDENT>return True<EOL>
Verifies that the document is valid according to Conditions Element

:returns: True if the condition is valid, False otherwise
:rtype: bool