These below tutorials are very closely related and similar to this one, you can also read,
Output: Thu Nov 11 2018 10:24:03 GMT+0530 (India Standard Time)
My current system time was 10:34:03
So you have seen how to do this.
If you want to know more about
getMinutes() and setMinutes() method please go through the following tutorial and read the last portion of that