wvega / timepicker

A jQuery plugin to enhance standard form input fields helping users to select (or type) times
http://timepicker.co
GNU General Public License v2.0
216 stars 92 forks source link

Add lockToInterval option #68

Open michelgallant opened 9 years ago

michelgallant commented 9 years ago

lockToInterval causes entered times to snap to the closest interval, based on a start of 0 minutes.

So, if you define an interval of 15, and lockToInterval is true, the following will happen: Entry: 803, Results in: 8:00 AM Entry: 808, Results in: 8:15 AM Entry: 2357, Results in 12:00 AM