how to set input of time type to current time on initialization

JavaScript
this.createForm.patchValue({
    date: new Date(),
    time: new Date().getHours() + ':' + new Date().getMinutes()
  });
Source

Also in JavaScript: