next-time

Returns the nearest date of given time

Returns the nearest date of given time

$ npm install next-time

At 6:00:

 
now
// => 20:30 
 
nextTime('23')
// => Date { Today 23:30 } 
 
nextTime('7:20')
// => Date { Tomorrow 7:20 }