Time Concate in utils.now

now=frappe.utils.nowtime()

i am using this and i want only hours and i want to concat, howcan i do that?
strftime not working as i am on frappe cloud. so i cant import the library.

can anyone has solutions for this?

Did you try this:
frappe.utils.get_datetime(frappe.utils.now_datetime()).strftime(’%I:%M %p’)


i am getting this error.

i can’t import libraries because i am on frappe cloud hosted erpnext.