#NEWLINE# def parse_time_arg( s ) : #NEWLINE# #INDENT# '\n    Parse a time stamp in the "year-month-day hour-minute" format.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# return time . strptime ( s , '%Y-%m-%d %H:%M' ) #NEWLINE# #UNINDENT# except ValueError as e : #NEWLINE# #INDENT# raise argparse . ArgumentTypeError ( e )