Link Search Menu Expand Document

Date.SetUTCHours Method

 
Explanation Set the hour part in UTC time.
The omitted parameter items are not changed.
Call format d.SetUTCHours (value [, min [, sec [, ms ]]])
Return value None
Arguments integer value Specify the hour as a 24-hour clock.
integer min Specify the minute numerically.
integer sec Specify the seconds numerically.
integer ms Specify the millisecond. The resolution accuracy of the Date class is 1 second, so even if you specify ms, it does not affect the result
Exception None
Example of use
var d = new Date ();
    print (d, "¥ n");
    d.SetUTCHours (13);
    print (d, "¥ n");
    
Related item