#NEWLINE# def parse_to_utc_dt( dt_s ) : #NEWLINE# #INDENT# dt_no_tz = dt_s [ : ( - 6 ) ] #NEWLINE# tz = dt_s [ ( - 5 ) : ] #NEWLINE# dt = datetime . strptime ( dt_no_tz , INTERNAL_DT_FORMAT_NO_TZ ) #NEWLINE# ( td , is_neg ) = _tz_to_timedelta ( dt ) #NEWLINE# if is_neg : #NEWLINE# #INDENT# dt += td #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dt -= td #NEWLINE# #UNINDENT# return dt