def parse_timezone(tzspec):
	if tzspec[0] in "+-":
		offset = int(tzspec[1:3], 10) * 60 + int(tzspec[3:5], 10)
		offset *= (-1 if tzspec[0] == "-" else 1)
		return FixedOffset(offset, tzspec)
	elif tzspec[0] == ":":
		print("ignoring unimp", tzspec)
		return UTC()
	else:
		return UTC()
dataset/ETHPy150Open grawity/hacks/hacks/Text/parse-timezones.py/parse_timezone/original