Link Search Menu Expand Document

Date.SetUTCSeconds Method

 
Explanation Set the seconds part in UTC time.
The omitted parameter items are not changed.
Call format d.SetUTCSeconds (value [, ms ])
Return value None
Arguments integer value 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.SetUTCSeconds (0);
print (d, "¥ n");
Related item