DatePrototype.setTime(Object, Double) 方法

定義

DateObject 的時間值設定為指定的時間值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

thisob
Object

這個方法執行位置的物件。

time
Double

針對 thisob 設定的時間值。

傳回

設定值之後,thisob 的新值。

屬性

適用於

另請參閱