DatePrototype.setUTCFullYear(Object, Double, Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 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表示。
- 屬性