DatePrototype.setSeconds(Object, Double, Object) 方法

定义

将 a DateObject 的秒值设置为指定的秒值。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static double setSeconds(System::Object ^ thisob, double dsec, System::Object ^ msec);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setSeconds)]
public static double setSeconds(object thisob, double dsec, object msec);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setSeconds)>]
static member setSeconds : obj * double * obj -> double
Public Shared Function setSeconds (thisob As Object, dsec As Double, msec As Object) As Double

参数

thisob
Object

此方法所依据的对象。

dsec
Double

要设置的 thisob秒值。

msec
Object

要设置 thisob的毫秒值。

返回

设置该值后的新值 thisob

属性

适用于

另请参阅