Link Search Menu Expand Document

Date.SetSeconds Method

 
Explanation Set the seconds part in local time.
The omitted parameter items are not changed.
Call format d.SetSeconds (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.SetSeconds (0);
print (d, "¥ n");
Related item