def midday_check(time_arg):
	"""
	Function analyses user defined 1 hour time frame system argument to access a gym and parses it to the time format
	suitable for gym reservation Website.
	For example:
	- '3:4pm' argument will be parsed to '3:00PM-4:00PM'
	- '11:12pm' argument will be parsed to '11:00AM-12:00PM'

	:param time_arg: user defined time 1h frame system argument to access a gym (x:y[am|pm])
	:return: time format suitable for gym reservation Website (X[AM|PM]-Y[AM|PM])
	"""
	if time_arg.split(':')[0] == '11':
		return time_arg.split(':')[0] + ":00" + ' ' + 'AM' + " - " + time_arg.split(':')[1][:-2] \
			   + ':00' + ' ' + time_arg[-2:].upper()
	else:
		return time_arg.split(':')[0] + ":00" + ' ' + time_arg[-2:].upper() + " - " \
			   + time_arg.split(':')[1][:-2] + ':00' + ' ' + time_arg[-2:].upper()