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

定义

DateObject 的年份值设置为以协调世界时 (UTC) 表示的指定年份值。Sets the year value of a DateObject to the specified year value, expressed in Coordinated Universal Time (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

此方法所作用于的对象。The object that this method is acting upon.

dyear
Double

要为 thisob 设置的年份值。The year value to set for thisob.

month
Object

要为 thisob 设置的月份值。The month value to set for thisob.

date
Object

要为 thisob 设置的日期值。The date value to set for thisob.

返回

Double

设置该值后 thisob 的新值(以 UTC 表示)。The new value of thisob after the value is set, expressed in UTC.

属性

适用于

另请参阅