widget to select time
clock-like time input control
npm install clock-input
var ClockInput = require'clock-input';var clock = ClockInputdocumentquerySelector'#clock';// set the hour/minute off the passed in dateclockset_time;clockon'change'dategetHours;dategetMinutes;;
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.