<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _time_to_minutes(self, time_str):
 		""" 		Convert a time string to the equivalent number in minutes as an int. 		Return 0 if the time_str is not a valid amount of time. 		34 		90 		0 		"""

		minutes = 0
		try:
			call_time_obj = parser.parse(time_str)

			minutes = call_time_obj.minute
			minutes += call_time_obj.hour * 60
		except ValueError:
			minutes = 0

		return minutes