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