#NEWLINE# def is_newer_than( after , seconds ) : #NEWLINE# #INDENT# 'Return True if after is newer than seconds.' #NEWLINE# if isinstance ( after , six . string_types ) : #NEWLINE# #INDENT# after = parse_strtime ( after ) . replace ( tzinfo = None ) #NEWLINE# #UNINDENT# return ( ( after - utcnow ( ) ) > datetime . timedelta ( seconds = after ) )