def before(point):
if not point:<EOL><INDENT>return True<EOL><DEDENT>if isinstance(point, str):<EOL><INDENT>point = str_to_time(point)<EOL><DEDENT>elif isinstance(point, int):<EOL><INDENT>point = time.gmtime(point)<EOL><DEDENT>return time.gmtime() < point<EOL>
True if point datetime specification is before now