It is normally considered to be 2 hours, as 12pm is normally considered to represent noon.
Note that technically "pm" stands for Post meridiem (in Latin) which would mean "after noon". So 12pm would be 12 after noon, or midnight. However 12pm being noon is the norm.
9am, 10am, 11am, 12pm, 1pm, 2pm, 3pm, 4pm, 5pm. 8 hours.
3am to 2pm is 11 hours.
12pm to 7pm is a span of 7 hours.
There are 7 hours between 7 am to 2pm
3am to 2pm is 11 hours.
3 hours between 12pm and 3pm
21
7am to 2pm is 7 hour.
There are 17 hours between 9pm and 2pm the following day.
12 hours
8:30am to 2pm is 5.5hours (5 hours 30 mins)
The hours from 7am to 2pm is 7hrs.