Datetime.timedelta(seconds=42902)

hello, Im new to frappe
This is my code where im getting “{‘punch_time’: datetime.timedelta(seconds=42902)}” as my output i want it in standard time format which i want to push into a field using which user can perform action
Please help me
thank you in advance

@frappe.whitelist()
	def get_value(self,emp_name,from_date,to_date):
		data = frappe.db.get_list('Punch_logs',
		filters=[
			['Punch_logs','emp_id','=' ,emp_name],
			['Punch_logs','punch_date','=' ,from_date]
			# ['Punch_logs','punch_date','<' ,to_date]
		],
		fields=['punch_time'],
		order_by='punch_time',
		# as_list= True
		)
		for seconds in data:
			# e = extract_time(seconds)

			# s =format_duration(seconds)
			d = seconds
			frappe.msgprint(("{0}").format(d))