What happens if we set the minutes value to -80?
Here is the example for setting a minutes in negative.
var dt= new Date();
document.write( dt + "<br><br>");
dt.setMinutes(-80);
document.write( "<br><br>" + dt );
In dt.setMinutes(-80); it has a negative value.
Gives the outuput (Wed Nov 18 2015 10:40:14 GMT+0530) for negative value:-
Wed Nov 18 2015 12:26:14 GMT+0530 (India Standard Time)
Wed Nov 18 2015 10:40:14 GMT+0530 (India Standard Time)
0 Comment(s)