Usually time-pickers (as you call them) are just 3 drop-down boxes:
| hh | : | mm | | am/pm |
So, you could write your own and just go from 0 - 23 (midnight to 11pm) and 00 to 59 (minutes) and then just concatenate them into a time (or use a function like [man]strtotime/man);
A small working demo:
$hours = '<select name="hour">'."\n";
$minutes = '<select name="min">'."\n";
function check($num)
{
if($num<10 && strlen($num)<2)
{
$num = '0'.$num;
}
return $num;
}
for($i=0; $i<13; $i++)
{
$hours .= '<option value="'.check($i).'">'.$i.'</option>'."\n";
}
$hours .= '</select>';
for($i=0; $i<60; $i++)
{
$minutes .= '<option value="'.check($i).'">'.check($i).'</option>'."\n";
}
$minutes .= '</select>';
if(@isset($_POST) && @$_POST['submit']=='Submit')
{
echo 'The time you entered was: ';
$hour = $_POST['hour'];
$min = $_POST['min'];
$ap = $_POST['ap'];
echo date('h:i a', strtotime($hour.':'.$min.' '.$ap));
echo '<hr>';
}
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Time: <?php echo $hours; ?> : <?php echo $minutes; ?>
<select name="ap"><option value="am">AM</option><option value="pm">PM</option></select><br>
<input type="submit" name="submit" value="Submit">
</form>