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

定義

將 a DateObject 的年值設定為指定的年值,並以協調世界時(UTC)表示。

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

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

參數

thisob
Object

這個方法作用的對象。

dyear
Double

要設定的年份值。thisob

month
Object

月份值要設定為 thisob

date
Object

要設定的 thisob日期值。

傳回

設定值後的新值 thisob 以UTC表示。

屬性

適用於

另請參閱