CakePHP: quarter precision time input

I use

$form->input("time")

to display the selection fields for entering the time. They have little accuracy, which I do not need.

How can I limit my selection lists to quarters (XX: 00, XX: 15, XX: 30, XX: 45)?

+3
source share
2 answers

Here's how to do it:

   <?php echo $form->input('time', array('type' => 'time', 'interval' => 15)); ?>
+13
source

Source: https://habr.com/ru/post/1732828/


All Articles