DatePrototype.setTime(Object, Double) 方法

定義

將 a 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 值。

屬性

適用於

另請參閱