clock-input

widget to select time

clock-input

clock-like time input control

npm install clock-input
var ClockInput = require('clock-input');
 
var clock = ClockInput(document.querySelector('#clock'));
 
// set the hour/minute off the passed in date 
clock.set_time(new Date());
 
clock.on('change', function(date) {
    date.getHours();
    date.getMinutes();
});

Package via browserify or your other favorite bundler.

return a new clock-input object created inside of the element you provide

Set the input time to the date's time

The following events are emitted as ClockInput is an Emitter

Change gets a date parameter with the newly selected time. Is also emitted when you explicitly set the time via set_time.