Return to Snippet

Revision: 50922
at September 9, 2011 02:32 by bitsculptor

Initial Code
	for ($i = 0; $i <= 1440; $i+=15) : 
	$date = date("g:i A",mktime(0,$i,0,1,1,2000));
	<option value="<?php echo $date; ?>"><?php echo $date; ?></option>

Initial URL

Initial Description
Outputs a select box that has timestamps from 12AM-12PM in 15min increments.

Initial Title
Timestamp Selectbox 15 min intervals

Initial Tags

Initial Language