I'm looking for the following solution in PHP.
Whenever a user clicks on a page I want to store the time they clicked as an half hour interval in 12 hour AM/PM format.
For example a user clicks at: 7:23AM will be stored as 7:00AM-7:30AM, 9:44PM will be stored as 9:30PM-10:00PM, etc